Added food api endpoints prep for mcp

This commit is contained in:
Joren de Graaf
2026-10-07 14:56:24 +02:00
parent 98f76918dc
commit 4f8c3272aa
22 changed files with 1093 additions and 115 deletions
+2
View File
@@ -46,6 +46,7 @@ INSTALLED_APPS = [
]
MIDDLEWARE = [
'food.api_middleware.ApiErrorMiddleware',
'django.middleware.security.SecurityMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
@@ -123,6 +124,7 @@ USE_TZ = True
# https://docs.djangoproject.com/en/6.1/howto/static-files/
STATIC_URL = 'static/'
MEDIA_ROOT = BASE_DIR / 'private_media'
# Vite writes production assets and its manifest here. In development templates
# load modules from the Vite server configured by VITE_DEV_SERVER.
+1
View File
@@ -18,6 +18,7 @@ from django.contrib import admin
from django.urls import include, path
urlpatterns = [
path('api/v1/', include('food.api_urls')),
path('admin/', admin.site.urls),
path('food/', include('food.urls', namespace='food')),
path('', include('planner.urls')),