DEV: Add Group replace and destroy endpoints

This commit is contained in:
Peter Bouda 2024-10-14 09:43:13 +01:00
parent 1ef8cb17d9
commit 61e62d07d6

View file

@ -16,6 +16,11 @@ Discourse::Application.routes.draw {
get 'Groups', to: 'groups#index' get 'Groups', to: 'groups#index'
get 'Groups/:id', to: 'groups#show' get 'Groups/:id', to: 'groups#show'
post 'Groups', to: 'groups#create' post 'Groups', to: 'groups#create'
put 'Groups/:id', to: 'groups#replace'
patch 'Groups/:id', to: 'groups#update' 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 end
} }