lostplaces-backend/lostplaces/lostplaces_app/urls.py
2020-08-01 19:05:13 +02:00

21 lines
689 B
Python

from django.urls import path, include
from django.conf.urls import url
from .views import (
hello_world,
place_detail_view,
place_list_view,
SignUpView,
PlaceCreateView,
PlaceUpdateView
)
urlpatterns = [
path('hello_world/', hello_world), # You know what this is :P
path('signup/', SignUpView.as_view(), name='signup'),
path('place/<int:pk>/', place_detail_view, name='place_detail'),
path('place/create/', PlaceCreateView.as_view(), name='place_create'),
path('place/update/<int:pk>/', PlaceUpdateView.as_view(), name='place_edit'),
path('place/', place_list_view, name='place_list'),
(r'^accounts/', include('invitation.urls'))
]