Skip to content

Commit

Permalink
fix_routing
Browse files Browse the repository at this point in the history
  • Loading branch information
usernaimandrey committed Aug 4, 2022
1 parent 8848f35 commit 2a064c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2a064c8

Please sign in to comment.