This repository has been archived on 2026-03-30. You can view files and clone it, but cannot push or open issues or pull requests.
RepApp/rc_hip/repapp/urls.py

27 lines
815 B
Python
Raw Normal View History

2023-04-18 19:13:30 +00:00
"""
Urls of RepApp.
"""
2023-04-16 11:01:31 +00:00
from django.urls import path
from . import views
urlpatterns = [
2023-04-18 18:04:32 +00:00
path("", views.IndexView.as_view(), name="index"),
2023-04-19 19:28:59 +00:00
path(
"cafe/<int:cafe>/",
2023-04-19 19:28:59 +00:00
views.RegisterDeviceFormView.as_view(),
name="register_device"
),
path(
2023-04-20 19:14:38 +00:00
"cafe/<int:cafe>/device/<str:deviceentifier>/<str:mail>/",
2023-04-19 19:28:59 +00:00
views.RegisterGuestFormView.as_view(),
name="register_guest"
),
2023-04-20 19:14:38 +00:00
path("cafe/<int:cafe>/device/<str:deviceentifier>/guest/<str:guestentifier>/",
2023-04-19 19:28:59 +00:00
views.register_device_final, name="register_device_final"),
2023-04-20 19:36:10 +00:00
path("confirm/<str:deviceentifier>/code/<str:device_secret>/",
2023-04-20 19:14:38 +00:00
views.register_device_confirm, name="register_device_confirm"),
2023-04-20 19:36:10 +00:00
path("device/<str:deviceentifier>/",
views.device_view, name="view_device"),
2023-04-16 11:01:31 +00:00
]