Files
drl_2/xuexiao/routes/__init__.py
user9994793890 ee860ce0ae Initial commit
2026-05-29 10:28:07 +08:00

36 lines
1.5 KiB
Python
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

"""路由注册 - 将所有路由直接注册到Flask app上避免蓝图endpoint前缀问题"""
def register_all_routes(app):
"""注册所有路由到app"""
from routes.auth import register_routes as register_auth
from routes.dashboard import register_routes as register_dashboard
from routes.student import register_routes as register_student
from routes.course import register_routes as register_course
from routes.teacher import register_routes as register_teacher
from routes.class_ import register_routes as register_class
from routes.recharge import register_routes as register_recharge
from routes.consumption import register_routes as register_consumption
from routes.refund import register_routes as register_refund
from routes.transfer import register_routes as register_transfer
from routes.stop import register_routes as register_stop
from routes.statistics import register_routes as register_statistics
from routes.system import register_routes as register_system
from routes.keshibiao import register_routes as register_keshibiao
from routes.account import register_routes as register_account
register_auth(app)
register_dashboard(app)
register_student(app)
register_course(app)
register_teacher(app)
register_class(app)
register_recharge(app)
register_consumption(app)
register_refund(app)
register_transfer(app)
register_stop(app)
register_statistics(app)
register_system(app)
register_keshibiao(app)
register_account(app)