dsite/timer/urls.py
Ching 25572c23c2 [A] add timer app
[A] add office hours viewset
[A] setup urls
2019-06-18 10:08:24 +08:00

12 lines
333 B
Python

from django.conf.urls import include, url
from django.urls import path
from rest_framework import routers
from timer import views
# Wire up our API using automatic URL routing.
# Additionally, we include login URLs for the browsable API.
urlpatterns = [
url('office-hours', views.OfficeHoursViewSet.as_view({'get': 'list'}))
]