Skip to content

Instantly share code, notes, and snippets.

@diverted247
Last active December 29, 2015 04:58
Show Gist options
  • Select an option

  • Save diverted247/7618090 to your computer and use it in GitHub Desktop.

Select an option

Save diverted247/7618090 to your computer and use it in GitHub Desktop.
Flask with dynamic routes
from flask import Flask
app = Flask(__name__)
@app.route('/')
@app.route('/<path:url_path>')
def index( url_path="" ):
return url_path
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment