From 61e62d07d6128c2f8c96d5f0349c4045329aaa1e Mon Sep 17 00:00:00 2001 From: Peter Bouda Date: Mon, 14 Oct 2024 09:43:13 +0100 Subject: [PATCH] DEV: Add Group replace and destroy endpoints --- config/routes.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/config/routes.rb b/config/routes.rb index e1a28f7..0ffd60a 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -16,6 +16,11 @@ Discourse::Application.routes.draw { get 'Groups', to: 'groups#index' get 'Groups/:id', to: 'groups#show' post 'Groups', to: 'groups#create' + put 'Groups/:id', to: 'groups#replace' patch 'Groups/:id', to: 'groups#update' + delete 'Groups/:id', to: 'groups#destroy' + + # TODO: Add catchall that sends a not available + #get '*unmatched_route', to: 'application#raise_not_found!' end }