Added food api endpoints prep for mcp
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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')),
|
||||
|
||||
Reference in New Issue
Block a user