Telezab/app/routes/api/__init__.py
UdoChudo 52e31864b3 feat: Develop web interface
- Implemented the initial version of the web interface.
refactor: Begin Telegram bot refactoring
- Started restructuring the bot’s code for better maintainability.
chore: Migrate to Flask project structure
- Reorganized the application to follow Flask's project structure.
cleanup: Extensive code cleanup
- Removed redundant code and improved readability.

Signed-off-by: UdoChudo <stream@udochudo.ru>
2025-06-10 14:39:11 +05:00

15 lines
560 B
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.

from flask import Blueprint
api_bp = Blueprint('api', __name__, url_prefix='/telezab/rest/api')
from .regions import region_bp
from .users import users_bp
from .systems import system_bp
from .notifications import notification_bp
# Регистрируем вложенные блюпринты с url_prefix
api_bp.register_blueprint(region_bp, url_prefix='/regions')
api_bp.register_blueprint(users_bp, url_prefix='/users')
api_bp.register_blueprint(system_bp, url_prefix='/systems')
api_bp.register_blueprint(notification_bp, url_prefix='/notifications')