mirror of
https://github.com/CrowCpp/Crow.git
synced 2024-06-07 21:10:44 +00:00
20 lines
322 B
Python
20 lines
322 B
Python
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)
|