separate table for fa post favs

This commit is contained in:
Dylan Knutson
2025-08-19 01:22:56 +00:00
parent 7f521b30e9
commit 4830a4ce54
36 changed files with 364 additions and 305 deletions

View File

@@ -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,