Skip to content
Snippets Groups Projects
Commit 40508003 authored by Lucas Gabriel Lima's avatar Lucas Gabriel Lima
Browse files

change followable, taggable and sociable concerns routes so its more clear

parent b72b6aff
No related branches found
No related tags found
No related merge requests found
......@@ -4,22 +4,22 @@ Rails.application.routes.draw do
concern :followable do
member do
post :follow
delete :unfollow
post 'follow', as: :follow, action: :follow
delete 'follow', as: :unfollow, action: :unfollow
end
end
concern :taggable do
member do
post :tagging
delete :untagging
post 'tagging', as: :tagging, action: :tagging
delete 'tagging', as: :untagging, action: :untagging
end
end
concern :sociable do
member do
post :like
delete :unlike
post 'like', as: :like, action: :like
delete 'like', as: :unlike, action: :unlike
end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment