Create the frontend receipes page to use real API

This commit is contained in:
Urtzi Alfaro
2025-09-19 21:39:04 +02:00
parent 8002d89d2b
commit d18c64ce6e
36 changed files with 3356 additions and 3171 deletions

View File

@@ -14,7 +14,7 @@ from contextlib import asynccontextmanager
from .core.config import settings
from .core.database import db_manager
from .api import recipes, production, ingredients
from .api import recipes
# Import models to register them with SQLAlchemy metadata
from .models import recipes as recipe_models
@@ -121,24 +121,14 @@ async def health_check():
)
# Include API routers
# Include API routers with tenant-scoped paths
app.include_router(
recipes.router,
prefix=f"{settings.API_V1_PREFIX}/recipes",
prefix=f"{settings.API_V1_PREFIX}/tenants",
tags=["recipes"]
)
app.include_router(
production.router,
prefix=f"{settings.API_V1_PREFIX}/production",
tags=["production"]
)
app.include_router(
ingredients.router,
prefix=f"{settings.API_V1_PREFIX}/ingredients",
tags=["ingredients"]
)
@app.get("/")