Skip to content

Commit

Permalink
Fix wrap-request-kebab middleware
Browse files Browse the repository at this point in the history
  • Loading branch information
tarun-nil committed Jan 4, 2024
1 parent e83e555 commit eedf690
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions swift-ticketing/src/swift_ticketing/app.clj
Original file line number Diff line number Diff line change
Expand Up @@ -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))

0 comments on commit eedf690

Please sign in to comment.