lostplaces-backend/source/lostplaces/lostplaces_app/urls.py

8 lines
259 B
Python
Raw Normal View History

2020-07-26 22:19:37 +02:00
from django.urls import path
2020-07-26 23:25:07 +02:00
from .views import hello_world, place_detail_view, place_list_view
2020-07-26 22:19:37 +02:00
urlpatterns = [
path('hello_world/', hello_world),
2020-07-26 23:34:03 +02:00
path('place/<int:pk>/', place_detail_view, name='place_detail'),
2020-07-26 23:25:07 +02:00
path('places/', place_list_view)
2020-07-26 22:19:37 +02:00
]