File tree Expand file tree Collapse file tree 7 files changed +15
-15
lines changed
src/authenticated_compojure_api/routes Expand file tree Collapse file tree 7 files changed +15
-15
lines changed Original file line number Diff line number Diff line change 2
2
:description " An example compojure-api app with authentication using buddy"
3
3
4
4
:dependencies [[org.clojure/clojure " 1.7.0" ]
5
- [metosin/compojure-api " 0.22.2 " ]
6
- [metosin/ring-http-response " 0.6.3 " ]
7
- [metosin/ring-swagger-ui " 2.1.1 " ]
5
+ [metosin/compojure-api " 0.23.1 " ]
6
+ [metosin/ring-http-response " 0.6.5 " ]
7
+ [metosin/ring-swagger-ui " 2.1.3 " ]
8
8
[cheshire " 5.5.0" ]
9
9
[http-kit " 2.1.19" ]
10
- [buddy " 0.6.1 " ]
11
- [org.clojure/java.jdbc " 0.4.1 " ]
10
+ [buddy " 0.7.2 " ]
11
+ [org.clojure/java.jdbc " 0.4.2 " ]
12
12
[postgresql/postgresql " 9.3-1102.jdbc41" ]
13
- [yesql " 0.5.0 " ]
14
- [environ " 1.0.0 " ]
13
+ [yesql " 0.5.1 " ]
14
+ [environ " 1.0.1 " ]
15
15
[clj-time " 0.11.0" ]
16
- [com.draines/postal " 1.11.3 " ]]
16
+ [com.draines/postal " 1.11.4 " ]]
17
17
18
- :plugins [[lein-environ " 1.0.0 " ]]
18
+ :plugins [[lein-environ " 1.0.1 " ]]
19
19
20
20
:min-lein-version " 2.5.0"
21
21
Original file line number Diff line number Diff line change 7
7
[compojure.api.sweet :refer :all ]))
8
8
9
9
(defroutes* auth-routes
10
- (context " /api" []
10
+ (context* " /api" []
11
11
12
12
(wrap-authentication
13
13
(GET* " /auth" {:as request}
Original file line number Diff line number Diff line change 5
5
[compojure.api.sweet :refer :all ]))
6
6
7
7
(defroutes* password-routes
8
- (context " /api" []
8
+ (context* " /api" []
9
9
10
10
(POST* " /password/reset-request" []
11
11
:tags [" Password" ]
Original file line number Diff line number Diff line change 9
9
10
10
11
11
(defroutes* permission-routes
12
- (context " /api" []
12
+ (context* " /api" []
13
13
14
14
(wrap-authentication
15
15
(POST* " /permission/user/:id" {:as request}
Original file line number Diff line number Diff line change 4
4
[ring.util.http-response :as respond]))
5
5
6
6
(defroutes* preflight-route
7
- (context " /api" []
7
+ (context* " /api" []
8
8
9
9
(OPTIONS* " *" {:as request}
10
10
:tags [" Preflight" ]
Original file line number Diff line number Diff line change 6
6
7
7
8
8
(defroutes* refresh-token-routes
9
- (context " /api" []
9
+ (context* " /api" []
10
10
11
11
(GET* " /refresh-token/:refreshToken" []
12
12
:tags [" Refresh-Token" ]
Original file line number Diff line number Diff line change 10
10
11
11
12
12
(defroutes* user-routes
13
- (context " /api" []
13
+ (context* " /api" []
14
14
15
15
(POST* " /user" {:as request}
16
16
:tags [" User" ]
You can’t perform that action at this time.
0 commit comments