diff options
author | Matthew Lemon <y@yulqen.org> | 2024-10-15 21:01:31 +0100 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2024-10-15 21:01:31 +0100 |
commit | eeaddb27560d723ca7d61359744ceb2709fccd2d (patch) | |
tree | 04ddbc49ae7b73d5f5a9e1716d7227aecd3b9f85 /alphabetlearning/resources/urls.py | |
parent | 7a3044c859043837e6c7c95bb4894d04e9b2cbc2 (diff) |
Renamed from pyblackbird_cc to alphabetlearning - everywhere
Diffstat (limited to 'alphabetlearning/resources/urls.py')
-rw-r--r-- | alphabetlearning/resources/urls.py | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/alphabetlearning/resources/urls.py b/alphabetlearning/resources/urls.py new file mode 100644 index 0000000..87cd3b0 --- /dev/null +++ b/alphabetlearning/resources/urls.py @@ -0,0 +1,28 @@ +from django.urls import path + +from . import views + +app_name = "resources" +urlpatterns = [ + path("", views.index, name="resource_list"), + path("create/", views.create_resource, name="create_resource"), + path("featured/", views.create_featured, name="create_featured"), + path("resource/<int:resource_id>", views.resource_detail, name="resource_detail"), + path( + "resource/update-metadata/<int:pk>", + views.update_resource_metadata, + name="resource_update_metadata", + ), + path( + "resource/update-thumbnails/<int:pk>", + views.update_resource_thumbnails, + name="resource_update_thumbnails", + ), + path("resource/add-pdfs/<int:pk>", views.add_resource_pdfs, name="resource_update_pdfs"), +] + +htmx_patterns = [ + path("hx-download-btn/", views.hx_download_button, name="hx_download_button"), +] + +urlpatterns += htmx_patterns |