0
0
Fork 0

Adding routes to follow, unfollow, favourite and reblog (locally known models)

This commit is contained in:
Eugen Rochko 2016-03-06 12:51:55 +01:00
parent aab330eb2d
commit c605b828b5
4 changed files with 57 additions and 1 deletions

View file

@ -9,7 +9,17 @@ Rails.application.routes.draw do
}
resources :accounts, path: 'users', only: [:show], param: :username do
resources :stream_entries, path: 'updates', only: [:show]
member do
post :follow
post :unfollow
end
resources :stream_entries, path: 'updates', only: [:show] do
member do
post :reblog
post :favourite
end
end
end
namespace :api do