mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-28 05:36:44 +00:00
First draft of API to add items to a collection (#37222)
This commit is contained in:
@@ -12,7 +12,9 @@ namespace :api, format: false do
|
||||
|
||||
resources :async_refreshes, only: :show
|
||||
|
||||
resources :collections, only: [:show, :create, :update, :destroy]
|
||||
resources :collections, only: [:show, :create, :update, :destroy] do
|
||||
resources :items, only: [:create], controller: 'collection_items'
|
||||
end
|
||||
end
|
||||
|
||||
# JSON / REST API
|
||||
|
||||
Reference in New Issue
Block a user