Hi,
Is it possible to use the route decorator to match any url?
for example:
@app.route('/<path:path>')
def path(path):
pass
however, the '/' won't be able to captured.
Thanks,
YC
Le 25/07/2010 05:03, weasky a écrit : > @app.route('/<path:path>') > def path(path): > pass > > however, the '/' won't be able to captured. > Hi, Try this: @app.route('/') @app.route('/<path:path>') def path(path=''): path = '/' + path # if you want the full path Regards, -- Simon Sapin