bornhack-website/src/rideshare/urls.py

44 lines
784 B
Python
Raw Normal View History

2018-08-08 20:18:39 +00:00
from django.urls import path, include
from .views import (
RideList,
RideCreate,
RideDetail,
RideUpdate,
RideDelete,
)
app_name = 'rideshare'
urlpatterns = [
path(
'',
RideList.as_view(),
name='list'
),
path(
'create/',
RideCreate.as_view(),
name='create'
),
path(
'<uuid:pk>/', include([
path(
'',
RideDetail.as_view(),
name='detail'
),
path(
'update/',
RideUpdate.as_view(),
name='update'
),
path(
'delete/',
RideDelete.as_view(),
name='delete'
),
])
)
]