mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-22 22:23:23 +00:00
73 lines
2.1 KiB
Python
73 lines
2.1 KiB
Python
# -*- coding:utf-8 -*-
|
|
#
|
|
# Copyright 2023 © AE UTBM
|
|
# ae@utbm.fr / ae.info@utbm.fr
|
|
# All contributors are listed in the CONTRIBUTORS file.
|
|
#
|
|
# This file is part of the website of the UTBM Student Association (AE UTBM),
|
|
# https://ae.utbm.fr.
|
|
#
|
|
# You can find the whole source code at https://github.com/ae-utbm/sith3
|
|
#
|
|
# LICENSED UNDER THE GNU GENERAL PUBLIC LICENSE VERSION 3 (GPLv3)
|
|
# SEE : https://raw.githubusercontent.com/ae-utbm/sith3/master/LICENSE
|
|
# OR WITHIN THE LOCAL FILE "LICENSE"
|
|
#
|
|
# PREVIOUSLY LICENSED UNDER THE MIT LICENSE,
|
|
# SEE : https://raw.githubusercontent.com/ae-utbm/sith3/master/LICENSE.old
|
|
# OR WITHIN THE LOCAL FILE "LICENSE.old"
|
|
#
|
|
|
|
from django.urls import path
|
|
|
|
from launderette.views import *
|
|
|
|
urlpatterns = [
|
|
# views
|
|
path("", LaunderetteMainView.as_view(), name="launderette_main"),
|
|
path(
|
|
"slot/<int:slot_id>/delete/",
|
|
SlotDeleteView.as_view(),
|
|
name="delete_slot",
|
|
),
|
|
path("book/", LaunderetteBookMainView.as_view(), name="book_main"),
|
|
path(
|
|
"book/<int:launderette_id>/",
|
|
LaunderetteBookView.as_view(),
|
|
name="book_slot",
|
|
),
|
|
path(
|
|
"<int:launderette_id>/click/",
|
|
LaunderetteMainClickView.as_view(),
|
|
name="main_click",
|
|
),
|
|
path(
|
|
"<int:launderette_id>/click/<int:user_id>/",
|
|
LaunderetteClickView.as_view(),
|
|
name="click",
|
|
),
|
|
path("admin/", LaunderetteListView.as_view(), name="launderette_list"),
|
|
path(
|
|
"admin/<int:launderette_id>/",
|
|
LaunderetteAdminView.as_view(),
|
|
name="launderette_admin",
|
|
),
|
|
path(
|
|
"admin/<int:launderette_id>/edit/",
|
|
LaunderetteEditView.as_view(),
|
|
name="launderette_edit",
|
|
),
|
|
path("admin/new/", LaunderetteCreateView.as_view(), name="launderette_new"),
|
|
path("admin/machine/new/", MachineCreateView.as_view(), name="machine_new"),
|
|
path(
|
|
"admin/machine/<int:machine_id>/edit/",
|
|
MachineEditView.as_view(),
|
|
name="machine_edit",
|
|
),
|
|
path(
|
|
"admin/machine/<int:machine_id>/delete/",
|
|
MachineDeleteView.as_view(),
|
|
name="machine_delete",
|
|
),
|
|
]
|