mirror of
https://github.com/pacnpal/thrillwiki_django_no_react.git
synced 2025-12-27 08:27:03 -05:00
Refactor code structure and remove redundant changes
This commit is contained in:
@@ -1,21 +0,0 @@
|
||||
from django.urls import path
|
||||
from . import views
|
||||
|
||||
app_name = "photos"
|
||||
|
||||
urlpatterns = [
|
||||
path("upload/", views.upload_photo, name="upload"),
|
||||
path(
|
||||
"upload/<int:photo_id>/", views.delete_photo, name="delete"
|
||||
), # Updated to match frontend
|
||||
path(
|
||||
"upload/<int:photo_id>/primary/",
|
||||
views.set_primary_photo,
|
||||
name="set_primary",
|
||||
),
|
||||
path(
|
||||
"upload/<int:photo_id>/caption/",
|
||||
views.update_caption,
|
||||
name="update_caption",
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user