mirror of
https://github.com/sstent/foodplanner.git
synced 2026-02-07 09:31:43 +00:00
fix remove food, efit food. assed playwright tests
This commit is contained in:
6
main.py
6
main.py
@@ -55,6 +55,12 @@ async def lifespan(app: FastAPI):
|
||||
app = FastAPI(title="Meal Planner", lifespan=lifespan)
|
||||
templates = Jinja2Templates(directory="templates")
|
||||
|
||||
# Import custom filters
|
||||
from app.utils import slugify
|
||||
|
||||
# Add custom filters to Jinja2 environment
|
||||
templates.env.filters['slugify'] = slugify
|
||||
|
||||
from app.api.routes import foods, meals, plans, templates as templates_router, weekly_menu, tracker, admin, export, charts
|
||||
|
||||
app.include_router(foods.router, tags=["foods"])
|
||||
|
||||
Reference in New Issue
Block a user