8ac1471a89
This new view sorts the messages by threads based on the reply_to. Now we store only the message which started a new thread in the reply_to field to avoid recursive queries.
20 lines
427 B
Ruby
20 lines
427 B
Ruby
Rails.application.routes.draw do
|
|
scope '/:foodcoop' do
|
|
resources :messages, :only => [:index, :show, :new, :create]
|
|
|
|
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
|
|
end
|
|
end
|