pzx-web-api/app/api/v1/__init__.py

21 lines
387 B
Python
Raw Normal View History

2023-08-10 12:27:18 +08:00
from apiflask import APIBlueprint
from app.api.v1.api import api
2023-08-11 16:36:56 +08:00
from app.api.v1.auth import auth
2023-08-12 20:00:38 +08:00
from app.api.v1.record import record
2023-08-10 12:27:18 +08:00
def create_v1():
bp_v1 = APIBlueprint('v1', __name__)
bp_v1.register_blueprint(api, url_prefix='/api')
2023-08-11 16:36:56 +08:00
bp_v1.register_blueprint(auth, url_prefix='/auth')
2023-08-12 20:00:38 +08:00
bp_v1.register_blueprint(record, url_prefix='/record')
2023-08-10 12:27:18 +08:00
return bp_v1