From 6cbacd756a20582758b0d524b9cc5dd1aac641c3 Mon Sep 17 00:00:00 2001 From: etahto Date: Fri, 20 Dec 2024 09:14:47 +0200 Subject: [PATCH] AE-2362: Remove unnecessary middlewares from route definition --- .../etp-backend/src/main/clj/solita/etp/api/public_csv.clj | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/etp-core/etp-backend/src/main/clj/solita/etp/api/public_csv.clj b/etp-core/etp-backend/src/main/clj/solita/etp/api/public_csv.clj index 6eacbe838..8306a54d7 100644 --- a/etp-core/etp-backend/src/main/clj/solita/etp/api/public_csv.clj +++ b/etp-core/etp-backend/src/main/clj/solita/etp/api/public_csv.clj @@ -10,9 +10,7 @@ [["/public-csv" ["/update" {:post {:summary "Päivitä julkiset CSV-tiedostot S3:ssa." - :middleware [[security/wrap-db-application-name - (kayttaja-service/system-kayttaja :aineisto)] - [security/wrap-whoami-for-internal-aineisto-api]] + :middleware [[security/wrap-db-application-name]] :responses {200 {:body nil}} :handler (fn [{:keys [db whoami aws-s3-client]}] (r/response