bornhack-website/src/phonebook/urls.py
Thomas Steen Rasmussen c52bf300ff
Phonebook (#465)
* first version of dect registration and phonebook functionality, missing export functionality for dect phone system, the rest should more or less work

* add a missing button and message

* fix typo

* add django-oauth-toolkit to implement oauth2 auth for the DECT csv export

* remove unused HMAC code

* add logger

* only show buttons when user is logged in

* remove unneeded enctype
2020-03-05 12:31:11 +01:00

49 lines
1.4 KiB
Python

from django.urls import include, path
from .views import (
DectExportView,
DectRegistrationCreateView,
DectRegistrationDeleteView,
DectRegistrationListView,
DectRegistrationUpdateView,
PhonebookListView,
)
app_name = "phonebook"
urlpatterns = [
path("", PhonebookListView.as_view(), name="list"),
path("csv/", DectExportView.as_view(), name="csv"),
path(
"dectregistrations/",
include(
[
path(
"", DectRegistrationListView.as_view(), name="dectregistration_list"
),
path(
"create/",
DectRegistrationCreateView.as_view(),
name="dectregistration_create",
),
path(
"<int:dect_number>/",
include(
[
path(
"update/",
DectRegistrationUpdateView.as_view(),
name="dectregistration_update",
),
path(
"delete/",
DectRegistrationDeleteView.as_view(),
name="dectregistration_delete",
),
]
),
),
]
),
),
]