From caa4bd14c21cef6e42ef9763311e74cf7abbfb78 Mon Sep 17 00:00:00 2001 From: Markus Kahl Date: Fri, 11 Sep 2020 10:11:39 +0100 Subject: [PATCH] added missing prepare endpoints for budgets and documents (direct uploads) --- .../lib/api/v3/attachments/attachments_by_budget_api.rb | 4 ++++ .../lib/api/v3/attachments/attachments_by_document_api.rb | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/modules/budgets/lib/api/v3/attachments/attachments_by_budget_api.rb b/modules/budgets/lib/api/v3/attachments/attachments_by_budget_api.rb index 4b68c16fb4..c3d743c3c3 100644 --- a/modules/budgets/lib/api/v3/attachments/attachments_by_budget_api.rb +++ b/modules/budgets/lib/api/v3/attachments/attachments_by_budget_api.rb @@ -45,6 +45,10 @@ module API get &API::V3::Attachments::AttachmentsByContainerAPI.read post &API::V3::Attachments::AttachmentsByContainerAPI.create + + namespace :prepare do + post &API::V3::Attachments::AttachmentsByContainerAPI.prepare + end end end end diff --git a/modules/documents/lib/api/v3/attachments/attachments_by_document_api.rb b/modules/documents/lib/api/v3/attachments/attachments_by_document_api.rb index b4fa7c4fb6..1e69f49c51 100644 --- a/modules/documents/lib/api/v3/attachments/attachments_by_document_api.rb +++ b/modules/documents/lib/api/v3/attachments/attachments_by_document_api.rb @@ -45,6 +45,10 @@ module API get &API::V3::Attachments::AttachmentsByContainerAPI.read post &API::V3::Attachments::AttachmentsByContainerAPI.create + + namespace :prepare do + post &API::V3::Attachments::AttachmentsByContainerAPI.prepare + end end end end