A menu management application built with Django, featuring: - Dish management with cover images - Order system with party dates and participants - REST API with Django REST Framework - Bootstrap-styled frontend Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
16 lines
502 B
Python
16 lines
502 B
Python
from django.urls import path, include
|
|
from rest_framework.routers import DefaultRouter
|
|
from . import views
|
|
|
|
router = DefaultRouter()
|
|
router.register(r'categories', views.DishCategoryViewSet)
|
|
router.register(r'dishes', views.DishViewSet)
|
|
router.register(r'orders', views.OrderViewSet)
|
|
|
|
urlpatterns = [
|
|
path('', views.index, name='index'),
|
|
path('api/', include(router.urls)),
|
|
path('api/parse-url/', views.ParseUrlView.as_view()),
|
|
path('api/upload/', views.upload_image, name='upload'),
|
|
]
|