v0.0.2: split api_bp into upload/process/download modules, Connection: close, upload tests (13 new, 106 total)
Deploy drhider / validate (push) Waiting to run

This commit is contained in:
2026-07-13 09:15:38 +04:00
parent 345448caa4
commit c35e8da357
7 changed files with 387 additions and 97 deletions
+6 -13
View File
@@ -1,20 +1,13 @@
"""
Регистрация всех blueprint'ов приложения.
Импортируется из site/app.py при создании Flask-приложения.
"""
from .main_bp import main_bp
from .health_bp import health_bp
from .api_bp import api_bp
from .upload_bp import upload_bp
from .process_bp import process_bp
from .download_bp import download_bp
def register_routes(app):
"""Зарегистрировать все blueprint'ы на Flask-приложении.
Args:
app: Экземпляр Flask-приложения
"""
app.register_blueprint(main_bp)
app.register_blueprint(health_bp)
app.register_blueprint(api_bp)
app.register_blueprint(upload_bp)
app.register_blueprint(process_bp)
app.register_blueprint(download_bp)