__init__.py 249 B

12345678910
  1. from .api import v1_bp, v2_bp
  2. from flask import Flask
  3. from .home import bp as home_bp
  4. def init_blueprints(app: Flask):
  5. ''' init routes '''
  6. app.register_blueprint(v1_bp)
  7. app.register_blueprint(v2_bp)
  8. app.register_blueprint(home_bp)