First draft of API to add items to a collection (#37222)

This commit is contained in:
David Roetzel
2025-12-12 14:09:55 +01:00
committed by GitHub
parent 1e67567d8f
commit 3cc4b59b41
5 changed files with 106 additions and 2 deletions

View File

@@ -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