workout/gym/urls.py

24 lines
1.4 KiB
Python
Raw Normal View History

2018-03-03 18:16:27 +01:00
from django.urls import path
2018-03-03 14:24:57 +01:00
2018-03-03 18:16:27 +01:00
from . import views
2018-03-03 14:24:57 +01:00
# Wire up our API using automatic URL routing.
# Additionally, we include login URLs for the browsable API.
urlpatterns = [
2018-03-03 18:16:27 +01:00
path('', views.RoomListView.as_view(), name='rooms-list'),
path('rooms/<int:pk>/', views.RoomDetailView.as_view(), name='room-detail'),
path('equipment/add/', views.EquipmentCreateView.as_view(), name='equipment-create'),
path('equipment/<int:pk>/', views.EquipmentDetailView.as_view(), name='equipment-detail'),
path('setting/add/', views.SettingCreateView.as_view(), name='setting-create'),
path('setting/<int:pk>/', views.SettingUpdateView.as_view(), name='setting-edit'),
2018-03-13 09:06:28 +01:00
path('setting/<int:pk>/delete/', views.SettingDeleteView.as_view(), name='setting-delete'),
2018-03-03 18:16:27 +01:00
path('session/start/', views.SessionCreateView.as_view(), name='session-start'),
path('session/<int:pk>/', views.SessionDetailView.as_view(), name='session-detail'),
2018-03-03 18:33:55 +01:00
path('round/add/', views.RoundCreateView.as_view(), name='round-create'),
2018-03-13 09:06:28 +01:00
path('round/<int:pk>/', views.RoundUpdateView.as_view(), name='round-edit'),
path('round/<int:pk>/delete/', views.RoundDeleteView.as_view(), name='round-delete'),
2018-03-04 09:23:35 +01:00
path('theoretical-max/add/', views.TheoreticalMaxCreateView.as_view(), name='theoretical-max-create'),
2018-03-13 09:06:28 +01:00
# path('session/<int:pk>/delete/', views.SessionDeleteView.as_view(), name='session-delete'),
2018-03-03 14:24:57 +01:00
]