mybuddy/api/urls.py

27 lines
788 B
Python
Raw Normal View History

# -*- coding: utf-8 -*-
from django.urls import include, path
from rest_framework import routers
2017-11-10 02:15:09 +00:00
from . import views
router = routers.DefaultRouter()
2017-11-10 02:15:09 +00:00
router.register(r'children', views.ChildViewSet)
router.register(r'changes', views.DiaperChangeViewSet)
router.register(r'feedings', views.FeedingViewSet)
router.register(r'notes', views.NoteViewSet)
router.register(r'sleep', views.SleepViewSet)
2019-05-17 05:13:14 +00:00
router.register(r'temperature', views.TemperatureViewSet)
2017-11-10 02:15:09 +00:00
router.register(r'timers', views.TimerViewSet)
router.register(r'tummy-times', views.TummyTimeViewSet)
router.register(r'weight', views.WeightViewSet)
2017-12-03 21:52:27 +00:00
app_name = 'api'
urlpatterns = [
path('api/', include(router.urls)),
path('api/auth/', include(
'rest_framework.urls',
namespace='rest_framework'
))
]