xxxxxxxxxx
from flask import url_for
# url_for(endpoint, **values)
url_for('static')
url_for('static', filename='js/index.js')
url args in flask
xxxxxxxxxx
url_for('add', variable=foo)
url_for('remove', variable=foo)
@app.route('/<variable>/add', methods=['GET', 'POST'])
def add(variable):
@app.route('/<variable>/remove', methods=['GET', 'POST'])
def remove(variable):