Skip to content

Commit

Permalink
cljstyle
Browse files Browse the repository at this point in the history
  • Loading branch information
Krisztian Gulyas committed Jun 23, 2023
1 parent bdf4bf6 commit e33d614
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion examples/jwt/src/backend/app/core.clj
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
[xiana.config :as config]
[xiana.handler :as x-handler]
[xiana.interceptor :as x-interceptors]
[xiana.jwt.action :as jwt-a]
[xiana.interceptor.error]
[xiana.jwt :as jwt]
[xiana.jwt.action :as jwt-a]
[xiana.jwt.interceptors :as jwt-interceptors]
[xiana.route :as x-routes]
[xiana.webserver :as ws]))
Expand Down
12 changes: 6 additions & 6 deletions src/xiana/interceptor.clj
Original file line number Diff line number Diff line change
Expand Up @@ -172,13 +172,13 @@
schemas (merge (get-in state [:request-data :match :data :parameters])
(get-in state [:request-data :match :data method :parameters]))
cc (cond-> {}
(:path schemas)
(assoc :path (valid? (:path schemas) path))
(:path schemas)
(assoc :path (valid? (:path schemas) path))

(:query schemas)
(assoc :query (valid? (:query schemas) query))
(:query schemas)
(assoc :query (valid? (:query schemas) query))

(:form schemas)
(assoc :form (valid? (:form schemas) form-params)))]
(:form schemas)
(assoc :form (valid? (:form schemas) form-params)))]

(update-in state [:request :params] merge cc))))})
3 changes: 2 additions & 1 deletion src/xiana/jwt/action.clj
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
(ns xiana.jwt.action
(:require [xiana.jwt :as jwt]))
(:require
[xiana.jwt :as jwt]))

(defn refresh-token
[state]
Expand Down

0 comments on commit e33d614

Please sign in to comment.