diff options
author | ipknHama <ipknhama@gmail.com> | 2014-04-10 08:17:08 +0900 |
---|---|---|
committer | ipknHama <ipknhama@gmail.com> | 2014-04-10 08:17:08 +0900 |
commit | b33c7a4f2957d4468afc1e7c4463189e180c8daa (patch) | |
tree | b3914100d8d6c888829645b0a98794d6e08dce7d /example.py | |
parent | d533a619c99c5ead31e86afd14dd9b017c63a9ab (diff) | |
download | crow-b33c7a4f2957d4468afc1e7c4463189e180c8daa.tar.gz crow-b33c7a4f2957d4468afc1e7c4463189e180c8daa.zip |
removing black magic; merging router with app
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) |