Files
zhangmenu/menu/urls.py
T
DeveloperandClaude Opus 4.6 0a50c09dba Initial commit - Zhangmenu Django project
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>
2026-03-12 11:27:23 +08:00

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'),
]