mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-19 20:59:29 +00:00
Merge commit 'a324edabdfc19b6978ed31800b92e36022006cd5' into glitch-soc/merge-upstream
This commit is contained in:
@@ -192,6 +192,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
|
||||
@@ -205,8 +206,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
|
||||
|
||||
Reference in New Issue
Block a user