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