Skip to content

Commit 1aa9afc

Browse files
committed
added middleware to interface
1 parent 06586af commit 1aa9afc

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

src/source/middleware/core.clj

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
(assoc :store store)
2424
(handler))))
2525

26-
(defn wrap-js
26+
(defn wrap-js
2727
"attaches the provided job service to the handler's request"
2828
[handler js]
2929
(fn [request]
@@ -39,7 +39,7 @@
3939
(-> app
4040
(wrap-store store)))
4141

42-
(defn apply-js
42+
(defn apply-js
4343
"middleware for attaching the job service to the request"
4444
[app js]
4545
(-> app
@@ -96,3 +96,7 @@
9696
(defn apply-bundle [app]
9797
(-> app
9898
(auth/wrap-bundle-id)))
99+
100+
(defn apply-api-key [app]
101+
(-> app
102+
(auth/wrap-auth-api-key)))

src/source/middleware/interface.clj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,6 @@
1111

1212
(defn apply-bundle [app]
1313
(mw/apply-bundle app))
14+
15+
(defn apply-api-key [app]
16+
(mw/apply-api-key app))

0 commit comments

Comments
 (0)