aboutsummaryrefslogblamecommitdiffstats
path: root/examples/example.py
blob: 1fd8fcdabfde56ebe7f0c92c33a04a8899fbdabc (plain) (tree)
1
2
3
4
5
6
7






                         









                                      
                          
                                      
from flask import Flask
app = Flask(__name__)

@app.route("/")
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", port=8888)