foodsoft/plugins/messages/config/routes.rb

26 lines
513 B
Ruby
Raw Normal View History

2014-03-07 09:51:24 +01:00
Rails.application.routes.draw do
scope '/:foodcoop' do
2016-03-04 17:24:28 +01:00
resources :messages, :only => [:index, :show, :new, :create] do
member do
get :thread
post :toggle_private
2016-03-04 17:24:28 +01:00
end
end
resources :message_threads, :only => [:index, :show]
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