2019-07-17 16:36:59 +08:00
|
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
|
from application import app
|
2019-07-21 18:20:01 +08:00
|
|
|
|
|
|
|
|
|
|
'''
|
|
|
|
|
|
统一拦截处理和统一错误处理
|
|
|
|
|
|
'''
|
|
|
|
|
|
from web.interceptors.AuthInterceptor import *
|
|
|
|
|
|
|
|
|
|
|
|
'''
|
|
|
|
|
|
蓝图功能,对所有的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-07-21 18:20:01 +08:00
|
|
|
|
from web.controllers.account.Account import route_account
|
|
|
|
|
|
from web.controllers.finance.Finance import route_finance
|
|
|
|
|
|
from web.controllers.food.Food import route_food
|
|
|
|
|
|
from web.controllers.member.Member import route_member
|
|
|
|
|
|
from web.controllers.stat.Stat import route_stat
|
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" )
|
|
|
|
|
|
app.register_blueprint(route_finance,url_prefix="/finance")
|
|
|
|
|
|
app.register_blueprint(route_member,url_prefix="/member")
|
|
|
|
|
|
app.register_blueprint(route_food,url_prefix="/food")
|
|
|
|
|
|
app.register_blueprint(route_stat,url_prefix="/stat")
|