Files
order/www.py

39 lines
1.6 KiB
Python
Raw Normal View History

2019-07-17 16:36:59 +08:00
# -*- coding: utf-8 -*-
from application import app
2019-07-21 18:20:01 +08:00
'''
统一拦截处理和统一错误处理
'''
2019-08-07 10:51:39 +08:00
from web.interceptors.AuthInterceptor import *
from web.interceptors.ApiAuthInterceptor import *
2019-07-29 15:28:02 +08:00
from web.interceptors.ErrorInterceptor import *
2019-07-21 18:20:01 +08:00
'''
蓝图功能对所有的url进行蓝图功能配置
'''
2019-07-17 16:36:59 +08:00
from web.controllers.index import route_index
2019-07-18 08:59:26 +08:00
from web.controllers.user.User import route_user
from web.controllers.static import route_static
2019-08-06 14:17:42 +08:00
2019-07-21 18:20:01 +08:00
from web.controllers.food.Food import route_food
2019-08-13 09:47:28 +08:00
from web.controllers.furniture.Furniture import route_furniture
2019-08-06 14:17:42 +08:00
from web.controllers.account.Account import route_account
2019-07-21 18:20:01 +08:00
from web.controllers.member.Member import route_member
2019-08-06 14:17:42 +08:00
from web.controllers.finance.Finance import route_finance
2019-07-21 18:20:01 +08:00
from web.controllers.stat.Stat import route_stat
2019-07-31 17:12:55 +08:00
from web.controllers.api import route_api
2019-08-02 18:24:04 +08:00
from web.controllers.upload.Upload import route_upload
2019-08-06 14:17:42 +08:00
from web.controllers.chart import route_chart
2019-07-17 16:36:59 +08:00
app.register_blueprint( route_index,url_prefix = "/" )
2019-07-18 08:59:26 +08:00
app.register_blueprint( route_user,url_prefix = "/user" )
app.register_blueprint( route_static,url_prefix = "/static" )
2019-07-21 18:20:01 +08:00
app.register_blueprint( route_account,url_prefix = "/account" )
2019-08-06 14:17:42 +08:00
app.register_blueprint( route_food,url_prefix = "/food" )
2019-08-13 09:47:28 +08:00
app.register_blueprint( route_furniture,url_prefix = "/furniture" )
2019-08-06 14:17:42 +08:00
app.register_blueprint( route_member,url_prefix = "/member" )
app.register_blueprint( route_finance,url_prefix = "/finance" )
app.register_blueprint( route_stat,url_prefix = "/stat" )
2019-07-31 17:12:55 +08:00
app.register_blueprint( route_api,url_prefix = "/api" )
2019-08-02 18:24:04 +08:00
app.register_blueprint( route_upload,url_prefix = "/upload" )
2019-08-06 14:17:42 +08:00
app.register_blueprint( route_chart,url_prefix = "/chart" )