I have worked with the Compojure Leiningen template with my code but now I'm struggling to add middleware. For reference, this is the default project:
(ns test.handler
(:require [compojure.core :refer :all]
[compojure.route :as route]
[ring.middleware.defaults :refer [wrap-defaults site-defaults]]))
(defroutes app-routes
(GET "/" [] "Hello World")
(route/not-found "Not Found"))
(def app
(wrap-defaults app-routes site-defaults))
My code functionally doesn't deviate from this.
I would like to add the [bk/ring-gzip "0.3.0"] middleware. I understand the concept but I haven't been able to find the syntax which extends this configuration.
Thank you for your time!