aboutsummaryrefslogtreecommitdiffstats
path: root/example.py
diff options
context:
space:
mode:
authoripknHama <ipknhama@gmail.com>2014-04-10 08:17:08 +0900
committeripknHama <ipknhama@gmail.com>2014-04-10 08:17:08 +0900
commitb33c7a4f2957d4468afc1e7c4463189e180c8daa (patch)
treeb3914100d8d6c888829645b0a98794d6e08dce7d /example.py
parentd533a619c99c5ead31e86afd14dd9b017c63a9ab (diff)
downloadcrow-b33c7a4f2957d4468afc1e7c4463189e180c8daa.tar.gz
crow-b33c7a4f2957d4468afc1e7c4463189e180c8daa.zip
removing black magic; merging router with app
Diffstat (limited to 'example.py')
-rw-r--r--example.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/example.py b/example.py
index 541f031..1fd8fcd 100644
--- a/example.py
+++ b/example.py
@@ -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)