Refactor code structure and remove redundant changes

This commit is contained in:
pacnpal
2025-08-26 13:19:04 -04:00
parent bf7e0c0f40
commit 831be6a2ee
151 changed files with 16260 additions and 9137 deletions

View File

@@ -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",
),
]