2024-03-17 11:26:32 +01:00
|
|
|
from django.urls import path
|
|
|
|
|
|
|
|
from . import views
|
|
|
|
|
|
|
|
urlpatterns = [
|
|
|
|
path("", views.index, name="index"),
|
2024-03-18 08:26:21 +01:00
|
|
|
# ex: /animal/5/
|
|
|
|
path("<int:animal_id>/", views.animal_detail, name="animal-detail"),
|
|
|
|
# ex: /adoption_notice/7/
|
2024-03-19 18:18:55 +01:00
|
|
|
path("vermittlung/<int:adoption_notice_id>/", views.adoption_notice_detail, name="adoption-notice-detail"),
|
2024-03-18 16:36:45 +01:00
|
|
|
|
|
|
|
# ex: /search/
|
|
|
|
path("suchen/", views.search, name="search"),
|
|
|
|
# ex: /vermitteln/
|
|
|
|
path("vermitteln/", views.add_adoption, name="add-adoption"),
|
2024-03-19 18:18:55 +01:00
|
|
|
|
|
|
|
# ex: vermitteln-tiere-hinzufügen/5
|
|
|
|
path("vermitteln-tiere-hinzufügen/<int:adoption_notice_id>",
|
|
|
|
views.add_animal_to_adoption,
|
|
|
|
name="add-animal-to-adoption"),
|
|
|
|
|
2024-03-18 16:41:22 +01:00
|
|
|
path("ueber-uns/", views.about, name="about"),
|
2024-03-22 12:45:50 +01:00
|
|
|
|
|
|
|
#############
|
|
|
|
## Reports ##
|
|
|
|
#############
|
2024-03-22 12:53:39 +01:00
|
|
|
path("melden/<int:adoption_notice_id>/", views.report_adoption, name="report-adoption-notice"),
|
2024-03-22 12:45:50 +01:00
|
|
|
path("meldung/<uuid:report_id>/", views.report_detail, name="report-detail"),
|
|
|
|
path("meldung/<uuid:report_id>/sucess", views.report_detail_success, name="report-detail-success"),
|
2024-03-23 22:20:31 +01:00
|
|
|
|
|
|
|
###########
|
|
|
|
## USERS ##
|
|
|
|
###########
|
|
|
|
path("user/<int:user_id>/", views.member_detail, name="user-detail"),
|
|
|
|
|
2024-03-22 12:45:50 +01:00
|
|
|
]
|