-
Notifications
You must be signed in to change notification settings - Fork 48
/
bp_register.py
executable file
·27 lines (20 loc) · 880 Bytes
/
bp_register.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
# -*- coding: utf-8 -*-
# @Time : 2019/4/18 10:47 AM
# @Author : ShaHeTop-Almighty-ares
# @Email : [email protected]
# @File : bp_register.py
# @Software: PyCharm
from app.api import restful_api, method_view_api
from app.controllers.other_module_01.module_01 import route_module_01
from app.controllers.other_module_02.module_02 import route_module_02
from app.controllers.other_module_03.module_03 import route_module_03
def register_bp(app):
"""蓝图注册"""
"""API蓝图注册"""
app.register_blueprint(restful_api, url_prefix="/api")
"""CMS蓝图注册"""
app.register_blueprint(method_view_api, url_prefix="/cms")
"""其他独立蓝图注册"""
app.register_blueprint(route_module_01, url_prefix="/m1")
app.register_blueprint(route_module_02, url_prefix="/m2")
app.register_blueprint(route_module_03, url_prefix="/m3")