From eedf69033029962a4d3ed01e78f63238179b4f9f Mon Sep 17 00:00:00 2001 From: Tarun Date: Thu, 4 Jan 2024 15:32:56 +0530 Subject: [PATCH] Fix wrap-request-kebab middleware --- swift-ticketing/src/swift_ticketing/app.clj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/swift-ticketing/src/swift_ticketing/app.clj b/swift-ticketing/src/swift_ticketing/app.clj index d5f161f..3dae6bc 100644 --- a/swift-ticketing/src/swift_ticketing/app.clj +++ b/swift-ticketing/src/swift_ticketing/app.clj @@ -43,14 +43,14 @@ (fn [request] (handler (update request - :body-params + :body (partial cske/transform-keys csk/->kebab-case-keyword))))) (defn swift-ticketing-app [db-spec message-queue] (-> (init-routes db-spec message-queue) (wrap-defaults (assoc-in site-defaults [:security :anti-forgery] false)) + wrap-request-kebab (wrap-json-body {:keywords? true :bigdecimals? true}) - wrap-request-kebab wrap-response-kebab wrap-json-response))