workout/gym/urls.py

44 lines
1.6 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 = [
2019-06-23 15:39:13 +02: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(
"equipment/<int:pk>/maxs",
views.TheoreticalMaxListView.as_view(),
name="theoretical-max-list",
),
path("setting/add/", views.SettingCreateView.as_view(), name="setting-create"),
path("setting/<int:pk>/", views.SettingUpdateView.as_view(), name="setting-edit"),
path(
"setting/<int:pk>/delete/",
views.SettingDeleteView.as_view(),
name="setting-delete",
),
path("session/start/", views.SessionCreateView.as_view(), name="session-start"),
path("session/<int:pk>/", views.SessionDetailView.as_view(), name="session-detail"),
path("round/add/", views.RoundCreateView.as_view(), name="round-create"),
path("round/<int:pk>/", views.RoundUpdateView.as_view(), name="round-edit"),
path(
"round/<int:pk>/delete/", views.RoundDeleteView.as_view(), name="round-delete"
),
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
]