separate table for fa post favs
This commit is contained in:
@@ -58,9 +58,15 @@ Rails.application.routes.draw do
|
||||
end
|
||||
|
||||
resources :posts, only: [], controller: "domain/posts", path: "" do
|
||||
get :favorites, on: :collection, action: :user_favorite_posts
|
||||
get :posts, on: :collection, action: :user_created_posts
|
||||
end
|
||||
|
||||
resources :user_post_favs,
|
||||
only: %i[],
|
||||
controller: "domain/user_post_favs",
|
||||
path: "" do
|
||||
get :favorites, on: :collection
|
||||
end
|
||||
end
|
||||
|
||||
resources :posts,
|
||||
|
||||
Reference in New Issue
Block a user