bornhack-website/src/rideshare/urls.py
Thomas Steen Rasmussen 00af109e2f
add flake8 and isort to pre-commit config, make flake8 and isort happy (#441)
* add flake8 to pre-commit config, and fixup many things to make flake8 happy

* add isort and sort all imports, add to pre-commit and requirements
2020-02-12 13:10:41 +01:00

21 lines
561 B
Python

from django.urls import include, path
from .views import RideCreate, RideDelete, RideDetail, RideList, RideUpdate
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"),
]
),
),
]