Files
order/www.py

32 lines
1.2 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
'''
统一拦截处理和统一错误处理
'''
from web.interceptors.AuthInterceptor 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-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-31 17:12:55 +08:00
from web.controllers.api import route_api
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")
2019-07-31 17:12:55 +08:00
app.register_blueprint( route_api,url_prefix = "/api" )