aboutsummaryrefslogtreecommitdiffstats
path: root/examples/example.py
blob: 1fd8fcdabfde56ebe7f0c92c33a04a8899fbdabc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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)