Create the frontend receipes page to use real API
This commit is contained in:
@@ -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("/")
|
||||
|
||||
Reference in New Issue
Block a user