forked from xboxertony/taipei-day-trip-website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.py
26 lines (22 loc) · 755 Bytes
/
app.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
from flask import *
from flask import session
app=Flask(__name__)
app.config["JSON_AS_ASCII"]=False
app.config["TEMPLATES_AUTO_RELOAD"]=True
app.config["JSON_SORT_KEYS"] = False
app.config["SEND_FILE_MAX_AGE_DEFAULT"] = 0
#### session ####
app.secret_key = "hello"
#### Blueprint ####
from route.page.page import page
from route.api.user import user
from route.api.attractions import att
from route.api.booking import book
from route.api.orders import orders
app.register_blueprint(page)
app.register_blueprint(user,url_prefix='/api')
app.register_blueprint(att,url_prefix='/api')
app.register_blueprint(book,url_prefix='/api')
app.register_blueprint(orders,url_prefix='/api')
if __name__ == "__main__":
app.run(host="0.0.0.0",port=3000,debug=True)