Make swagger-ui available only for dev profile
This commit is contained in:
parent
1107ed71e7
commit
f8e7677c9e
|
@ -13,6 +13,7 @@
|
||||||
[commiteth.github.core :as github]
|
[commiteth.github.core :as github]
|
||||||
[clojure.tools.logging :as log]
|
[clojure.tools.logging :as log]
|
||||||
[commiteth.eth.core :as eth]
|
[commiteth.eth.core :as eth]
|
||||||
|
[commiteth.config :refer [env]]
|
||||||
[crypto.random :as random]
|
[crypto.random :as random]
|
||||||
[clojure.set :refer [rename-keys]]
|
[clojure.set :refer [rename-keys]]
|
||||||
[clojure.string :as str]))
|
[clojure.string :as str]))
|
||||||
|
@ -141,11 +142,12 @@
|
||||||
|
|
||||||
|
|
||||||
(defapi service-routes
|
(defapi service-routes
|
||||||
|
(when (:dev env)
|
||||||
{:swagger {:ui "/swagger-ui"
|
{:swagger {:ui "/swagger-ui"
|
||||||
:spec "/swagger.json"
|
:spec "/swagger.json"
|
||||||
:data {:info {:version "0.1"
|
:data {:info {:version "0.1"
|
||||||
:title "commitETH API"
|
:title "commitETH API"
|
||||||
:description "commitETH API"}}}}
|
:description "commitETH API"}}}})
|
||||||
|
|
||||||
(context "/api" []
|
(context "/api" []
|
||||||
(GET "/top-hunters" []
|
(GET "/top-hunters" []
|
||||||
|
|
Loading…
Reference in New Issue