dsite/recipe/urls.py
Ching 1dd97b9e54 feat(dailyrecipe and week recipe): [A] 增加dailyrecipe 每日菜单,增加 weekrecipe 接口
[A] 增加dailyrecipe 每日菜单,增加 weekrecipe 接口

Signed-off-by: Ching <loooching@gmail.com>
2021-10-02 20:28:35 +08:00

15 lines
506 B
Python

from django.conf.urls import include, url
# from django.core.urlresolvers import reverse
from django.urls import path
from rest_framework import routers
from recipe import views
# Wire up our API using automatic URL routing.
# Additionally, we include login URLs for the browsable API.
urlpatterns = [
url(r'^recipe/(?P<pk>\d+)$', views.RecipeAPI.as_view(), name='recipe-detail'),
url(r'^recipe/$', views.RecipeListAPI.as_view()),
url(r'^week-recipe/$', views.WeekRecipeListAPI.as_view()),
]