-
Notifications
You must be signed in to change notification settings - Fork 1
/
www.py
56 lines (31 loc) · 1.21 KB
/
www.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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# -*- coding:utf-8 -*-
#@Auhor : Agam
#@Time : 2018-12-08
#@Email : [email protected]
from application import app
import web.controllers.api.api_v1
"""
统一拦截器
"""
from web.interceptors.getwx import *
from web.interceptors.Authinterceptor import *
'''
蓝图功能,对所有的url进行蓝图功能配置
'''
from web.controllers.admin.index import adminIndexRoute
from web.controllers.admin.user.User import adminUserRoute
from web.controllers.static import route_static
from web.controllers.admin.main.Mains import MainRoute
from web.controllers.admin.jianzhi.jianzhi import jianzhiRoute
app.register_blueprint(adminIndexRoute,url_prefix="/")
app.register_blueprint(adminUserRoute,url_prefix="/login")
app.register_blueprint(MainRoute,url_prefix="/main")
app.register_blueprint(jianzhiRoute,url_prefix="/jianzhi")
app.register_blueprint(route_static,url_prefix='/static')
# 微站蓝图
from web.controllers.app.home.home import appHome
from web.controllers.app.posts.posts import appPosts
from web.controllers.app.me.me import appMe
app.register_blueprint(appHome,url_prefix='/app/apphome')
app.register_blueprint(appMe,url_prefix='/app/appme')
app.register_blueprint(appPosts,url_prefix='/app/apposts')