diff --git a/backend/rebutify/urls.py b/backend/rebutify/urls.py index e49e234..bfd3114 100644 --- a/backend/rebutify/urls.py +++ b/backend/rebutify/urls.py @@ -30,7 +30,6 @@ router = routers.DefaultRouter() router.register(r"status/alive", views.StatusViewSet, basename="alive") router.register(r"posts", views.PostViewSet, basename="posts") -router.register(r"arguments", views.ArgumentViewSet, basename="arguments") router.register( r"rebuttals", views.RebuttalViewSet, @@ -71,4 +70,29 @@ SpectacularRedocView.as_view(url_name="schema"), name="redoc-ui", ), + path( + "api/arguments", + views.ArgumentViewSet.as_view({"get": "list"}), + name="arguments", + ), + path( + "api/arguments/", + views.ArgumentViewSet.as_view({"get": "list"}), + name="arguments", + ), + path( + "api/arguments/add", + views.ArgumentViewSet.as_view({"post": "create"}), + name="arguments", + ), + path( + "api/arguments//edit", + views.ArgumentViewSet.as_view({"put": "edit"}), + name="arguments", + ), + path( + "api/arguments//delete", + views.ArgumentViewSet.as_view({"delete": "delete"}), + name="arguments", + ), ]