feat: add frontend views and file management functionality, enhance user response structure, and update configuration guide

This commit is contained in:
Christian Krakau-Louis
2025-04-03 21:49:15 +02:00
parent 2cafda11dd
commit d23a48b1c0
19 changed files with 892 additions and 1406 deletions
+5 -5
View File
@@ -15,9 +15,9 @@ from app.database import init_db
from app.config import settings
from app.utils.config_validator import check_all_configs
# Import both the traditional and new routers
from app.frontend import router as frontend_router_original
from app.api import router as api_router # Updated import for the refactored API router
# Import the routers - now using views directly instead of frontend
from app.views import router as frontend_router
from app.api import router as api_router
from app.auth import router as auth_router
# Load configuration from .env for the session key
@@ -95,8 +95,8 @@ def test_500():
raise RuntimeError("Testing forced 500 error!")
# Include the routers
app.include_router(frontend_router_original)
app.include_router(frontend_router)
app.include_router(auth_router)
app.include_router(api_router, prefix="/api") # Use the refactored API router
app.include_router(api_router, prefix="/api")