Complete primitive backend
This commit is contained in:
12
django_backend/api/urls.py
Normal file
12
django_backend/api/urls.py
Normal file
@@ -0,0 +1,12 @@
|
||||
from django.urls import include, path
|
||||
from rest_framework import routers
|
||||
from api import views
|
||||
|
||||
router = routers.DefaultRouter()
|
||||
router.register(r'recipes', views.RecipeView)
|
||||
router.register(r'ingredients', views.IngredientView)
|
||||
router.register(r'homegroups', views.HomegroupView)
|
||||
|
||||
urlpatterns = [
|
||||
path('', include(router.urls))
|
||||
]
|
||||
Reference in New Issue
Block a user