ernestophone.ens.fr/partitions/urls.py

33 lines
1.1 KiB
Python
Raw Normal View History

2018-01-04 23:33:31 +01:00
from django.urls import path
2015-03-17 19:03:51 +01:00
2018-01-04 23:33:31 +01:00
from . import views
2021-04-29 00:27:33 +02:00
app_name = "partitions"
urlpatterns = [
2021-04-29 00:27:33 +02:00
path("", views.Repertoire.as_view(), name="liste"),
path("download", views.download_musecores, name="download_musecores"),
2021-04-29 00:33:58 +02:00
path("<str:nom>/<str:auteur>/upload", views.Upload.as_view(), name="upload"),
2021-04-29 00:27:33 +02:00
path("<str:nom>/<str:auteur>", views.Morceau.as_view(), name="listepart"),
2021-04-29 00:33:58 +02:00
path("<str:nom>/<str:auteur>/see/<int:partition_id>", views.see, name="see"),
path("<str:nom>/<str:auteur>/<int:partition_id>", views.download, name="download"),
2021-04-29 00:27:33 +02:00
path(
2021-04-29 00:33:58 +02:00
"<str:nom>/<str:auteur>/<int:id>/conf",
views.ConfDelete.as_view(),
name="conf_delete",
),
path(
"<str:nom>/<str:auteur>/<int:id>/delete",
views.DeletePart.as_view(),
name="delete",
),
path(
"<str:nom>/<str:auteur>/delete", views.DeleteMorc.as_view(), name="delete_morc"
),
path(
"<str:nom>/<str:auteur>/conf",
views.ConfDeleteMorc.as_view(),
name="conf_delete_morc",
2021-04-29 00:27:33 +02:00
),
path("new", views.CreateMorc.as_view(), name="ajouter_morceau"),
]