2014-03-07 09:51:24 +01:00
|
|
|
Rails.application.routes.draw do
|
|
|
|
scope '/:foodcoop' do
|
2023-05-12 13:01:12 +02:00
|
|
|
resources :messages, only: %i[index show new create] do
|
2016-03-04 17:24:28 +01:00
|
|
|
member do
|
|
|
|
get :thread
|
2019-02-11 13:22:54 +01:00
|
|
|
post :toggle_private
|
2016-03-04 17:24:28 +01:00
|
|
|
end
|
|
|
|
end
|
2016-02-18 11:00:03 +01:00
|
|
|
|
2023-05-12 13:01:12 +02:00
|
|
|
resources :message_threads, only: %i[index show]
|
2016-02-18 11:00:03 +01:00
|
|
|
|
|
|
|
resources :messagegroups, only: [:index] do
|
|
|
|
member do
|
|
|
|
post :join
|
|
|
|
post :leave
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
namespace :admin do
|
|
|
|
resources :messagegroups do
|
|
|
|
get :memberships, on: :member
|
|
|
|
end
|
|
|
|
end
|
2014-03-07 09:51:24 +01:00
|
|
|
end
|
|
|
|
end
|