diff options
Diffstat (limited to 'example.py')
-rw-r--r-- | example.py | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -5,5 +5,15 @@ app = Flask(__name__) def hello(): return "Hello World!" +@app.route("/about/<path:path>/hello") +def hello1(path): + return "about1" + +@app.route("/about") +def hello2(): + return "about2" + +print app.url_map + if __name__ == "__main__": - app.run(host="0.0.0.0") + app.run(host="0.0.0.0", port=8888) |