Add REST API for fetching an account's endorsed accounts (#34421)
This commit is contained in:
parent
ba0bd3da4a
commit
ff0990ec9f
5 changed files with 98 additions and 37 deletions
|
@ -190,6 +190,7 @@ namespace :api, format: false do
|
|||
resources :lists, only: :index
|
||||
resources :identity_proofs, only: :index
|
||||
resources :featured_tags, only: :index
|
||||
resources :endorsements, only: :index
|
||||
end
|
||||
|
||||
member do
|
||||
|
@ -203,8 +204,10 @@ namespace :api, format: false do
|
|||
end
|
||||
|
||||
scope module: :accounts do
|
||||
resource :pin, only: :create
|
||||
post :unpin, to: 'pins#destroy'
|
||||
post :pin, to: 'endorsements#create'
|
||||
post :endorse, to: 'endorsements#create'
|
||||
post :unpin, to: 'endorsements#destroy'
|
||||
post :unendorse, to: 'endorsements#destroy'
|
||||
resource :note, only: :create
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue