feat: add api auth

This commit is contained in:
2023-08-11 16:36:56 +08:00
parent 99cc82b9e7
commit fb46ba4395
5 changed files with 68 additions and 1 deletions

View File

@@ -1,11 +1,13 @@
from apiflask import APIBlueprint
from app.api.v1.api import api
from app.api.v1.auth import auth
def create_v1():
bp_v1 = APIBlueprint('v1', __name__)
bp_v1.register_blueprint(api, url_prefix='/api')
bp_v1.register_blueprint(auth, url_prefix='/auth')
return bp_v1