Skip to content

Commit

Permalink
Drop unused params from the handler's destructuring form
Browse files Browse the repository at this point in the history
  • Loading branch information
Joel Iniguez committed Sep 27, 2023
1 parent 950fd8d commit cc3972a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/triangulum/handler.clj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
[clojure.edn :as edn]
[clojure.spec.alpha :as s]
[clojure.string :as str]
[ring.util.codec :refer [url-decode]]
[ring.middleware.absolute-redirects :refer [wrap-absolute-redirects]]
[ring.middleware.content-type :refer [wrap-content-type]]
[ring.middleware.default-charset :refer [wrap-default-charset]]
Expand All @@ -19,6 +18,7 @@
[ring.middleware.session :refer [wrap-session]]
[ring.middleware.session.cookie :refer [cookie-store]]
[ring.middleware.ssl :refer [wrap-ssl-redirect]]
[ring.util.codec :refer [url-decode]]
[ring.middleware.x-headers :refer [wrap-content-type-options
wrap-frame-options
wrap-xss-protection]]
Expand Down Expand Up @@ -48,8 +48,8 @@
(defn authenticated-routing-handler
"Routing Handler that delegates authentication & redirection
to handlers specified in your config.edn"
[{:keys [uri request-method #_params #_session #_headers] :as request}]
(let [redirect-handler (resolve-foreign-symbol (get-config :triangulum.handler/redirect-handler))
[{:keys [uri request-method] :as request}]
(let [redirect-handler (resolvem-foreign-symbol (get-config :triangulum.handler/redirect-handler))
not-found-handler (resolve-foreign-symbol (get-config :triangulum.handler/not-found-handler))
is-authenticated? (resolve-foreign-symbol (get-config :triangulum.handler/route-authenticator))
routes (->> (get-config :triangulum.handler/routing-tables)
Expand Down

0 comments on commit cc3972a

Please sign in to comment.