From 505508a4163c61f052c1aa4c435b5d6be9c2c959 Mon Sep 17 00:00:00 2001 From: Daniel James Smith <2670567+djsmith85@users.noreply.github.com> Date: Fri, 12 Jan 2024 16:13:29 +0100 Subject: [PATCH] [PM-5553] Move Org-Export to tools (#3639) * Move Org-Export to tools * Make linter happy --------- Co-authored-by: Daniel James Smith --- .../{ => Tools}/Controllers/OrganizationExportController.cs | 3 ++- .../Models/Response/OrganizationExportResponseModel.cs | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) rename src/Api/{ => Tools}/Controllers/OrganizationExportController.cs (97%) rename src/Api/{ => Tools}/Models/Response/OrganizationExportResponseModel.cs (85%) diff --git a/src/Api/Controllers/OrganizationExportController.cs b/src/Api/Tools/Controllers/OrganizationExportController.cs similarity index 97% rename from src/Api/Controllers/OrganizationExportController.cs rename to src/Api/Tools/Controllers/OrganizationExportController.cs index be5aa0e14..b3c0643b2 100644 --- a/src/Api/Controllers/OrganizationExportController.cs +++ b/src/Api/Tools/Controllers/OrganizationExportController.cs @@ -1,4 +1,5 @@ using Bit.Api.Models.Response; +using Bit.Api.Tools.Models.Response; using Bit.Api.Vault.Models.Response; using Bit.Core.Context; using Bit.Core.Entities; @@ -9,7 +10,7 @@ using Bit.Core.Vault.Services; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; -namespace Bit.Api.Controllers; +namespace Bit.Api.Tools.Controllers; [Route("organizations/{organizationId}")] [Authorize("Application")] diff --git a/src/Api/Models/Response/OrganizationExportResponseModel.cs b/src/Api/Tools/Models/Response/OrganizationExportResponseModel.cs similarity index 85% rename from src/Api/Models/Response/OrganizationExportResponseModel.cs rename to src/Api/Tools/Models/Response/OrganizationExportResponseModel.cs index 1bfca7e3d..a4b35d8de 100644 --- a/src/Api/Models/Response/OrganizationExportResponseModel.cs +++ b/src/Api/Tools/Models/Response/OrganizationExportResponseModel.cs @@ -1,7 +1,8 @@ -using Bit.Api.Vault.Models.Response; +using Bit.Api.Models.Response; +using Bit.Api.Vault.Models.Response; using Bit.Core.Models.Api; -namespace Bit.Api.Models.Response; +namespace Bit.Api.Tools.Models.Response; public class OrganizationExportResponseModel : ResponseModel {