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-15 17:49:05 +08:00
|
|
|
from app.api.v1.user import user
|
2023-09-15 18:00:17 +08:00
|
|
|
from app.api.v1.diet import diet
|
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-15 17:49:05 +08:00
|
|
|
bp_v1.register_blueprint(user, url_prefix='/user')
|
2023-09-15 18:00:17 +08:00
|
|
|
bp_v1.register_blueprint(diet, url_prefix='/diet')
|
2023-08-10 12:27:18 +08:00
|
|
|
return bp_v1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|