Adding routes to follow, unfollow, favourite and reblog (locally known models)
This commit is contained in:
parent
aab330eb2d
commit
c605b828b5
4 changed files with 57 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue