DEV: Add Group replace and destroy endpoints
This commit is contained in:
parent
1ef8cb17d9
commit
61e62d07d6
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue