dsite/timer/urls.py

14 lines
463 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 timer import views
# Wire up our API using automatic URL routing.
# Additionally, we include login URLs for the browsable API.
urlpatterns = [
url(r'^office-hours/$', views.OfficeHoursAPI.as_view()),
url(r'^office-hours-page/$', views.OfficeHoursFormView.as_view(), name='office-hours-page'),
]