diff --git a/config/routes.rb b/config/routes.rb index a4be479..ff51bb1 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -9,7 +9,7 @@ resources :posts, only: %i[show new create destroy] do scope module: :posts do - post 'comments(/:parent_id)', to: 'comments#create', as: :comments + resources :comments, only: %i[create] resources :likes, only: %i[create destroy] end end