Skip to content

Commit

Permalink
Move file upload and deletion to content from files (#928)
Browse files Browse the repository at this point in the history
Signed-off-by: Tmpecho <[email protected]>
Co-authored-by: Mads Nylund <[email protected]>
  • Loading branch information
Tmpecho and MadsNyl authored Nov 11, 2024
1 parent 2940849 commit 94e5635
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 3 additions & 0 deletions app/content/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
register_with_feide,
send_email,
)
from app.files.views.upload import delete, upload

router = routers.DefaultRouter()

Expand Down Expand Up @@ -51,6 +52,8 @@
urlpatterns = [
re_path(r"", include(router.urls)),
path("accept-form/", accept_form),
path("upload/", upload),
path("delete-file/<str:container_name>/<str:blob_name>/", delete),
path("send-email/", send_email),
path("feide/", register_with_feide),
re_path(r"users/(?P<user_id>[^/.]+)/events.ics", UserCalendarEvents()),
Expand Down
3 changes: 0 additions & 3 deletions app/files/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
from rest_framework import routers

from app.files.views.file import FileViewSet
from app.files.views.upload import delete, upload
from app.files.views.user_gallery import UserGalleryViewSet

router = routers.DefaultRouter()
Expand All @@ -11,7 +10,5 @@
router.register("user_gallery", UserGalleryViewSet, basename="user_gallery")

urlpatterns = [
path("upload/", upload),
path("delete-file/<str:container_name>/<str:blob_name>/", delete),
path("files/", include(router.urls)),
]

0 comments on commit 94e5635

Please sign in to comment.