From 540ac9a1c01e31d17c7579d54ea9160a1a4261d8 Mon Sep 17 00:00:00 2001 From: Tmpecho Date: Mon, 11 Nov 2024 18:36:01 +0100 Subject: [PATCH] Move file upload and deletion to content from files Signed-off-by: Tmpecho --- app/content/urls.py | 3 +++ app/files/urls.py | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/content/urls.py b/app/content/urls.py index 536f8fb7..ef01a533 100644 --- a/app/content/urls.py +++ b/app/content/urls.py @@ -21,6 +21,7 @@ register_with_feide, send_email, ) +from app.files.views.upload import delete, upload router = routers.DefaultRouter() @@ -51,6 +52,8 @@ urlpatterns = [ re_path(r"", include(router.urls)), path("accept-form/", accept_form), + path("upload/", upload), + path("delete-file///", delete), path("send-email/", send_email), path("feide/", register_with_feide), re_path(r"users/(?P[^/.]+)/events.ics", UserCalendarEvents()), diff --git a/app/files/urls.py b/app/files/urls.py index 02655adc..27da1ac4 100644 --- a/app/files/urls.py +++ b/app/files/urls.py @@ -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() @@ -11,7 +10,5 @@ router.register("user_gallery", UserGalleryViewSet, basename="user_gallery") urlpatterns = [ - path("upload/", upload), - path("delete-file///", delete), path("files/", include(router.urls)), ]