lostplaces-backend/lostplaces/lostplaces_app/urls.py

11 lines
521 B
Python
Raw Normal View History

2020-07-26 22:19:37 +02:00
from django.urls import path
from .views import hello_world, place_detail_view, place_list_view, SignUpView, PlaceEditView
2020-07-26 22:19:37 +02:00
urlpatterns = [
path('hello_world/', hello_world), # You know what this is :P
path('signup/', SignUpView.as_view(), name='signup'),
2020-07-26 23:34:03 +02:00
path('place/<int:pk>/', place_detail_view, name='place_detail'),
path('place/create/', PlaceEditView.as_view(), name='place_create'),
2020-07-29 21:28:12 +02:00
path('place/edit/<int:pk>/', PlaceEditView.as_view(), name='place_edit'),
path('place/', place_list_view)
2020-07-26 22:19:37 +02:00
]