Merge branch 'develop'
This commit is contained in:
commit
317247e31a
|
@ -15,7 +15,7 @@
|
||||||
[["-p" "--port PORT" "Port number"
|
[["-p" "--port PORT" "Port number"
|
||||||
:parse-fn #(Integer/parseInt %)]])
|
:parse-fn #(Integer/parseInt %)]])
|
||||||
|
|
||||||
(mount/defstate ^{:on-reload :noop}
|
(mount/defstate
|
||||||
http-server
|
http-server
|
||||||
:start
|
:start
|
||||||
(http/start
|
(http/start
|
||||||
|
|
|
@ -26,7 +26,9 @@
|
||||||
:migration-table-name "schema_migrations"
|
:migration-table-name "schema_migrations"
|
||||||
:db db}]
|
:db db}]
|
||||||
(migratus/migrate migratus-config)
|
(migratus/migrate migratus-config)
|
||||||
(conman/connect! {:jdbc-url db})))
|
(conman/bind-connection db "sql/queries.sql")
|
||||||
|
(conman/connect! {:jdbc-url db})
|
||||||
|
db))
|
||||||
|
|
||||||
(defstate ^:dynamic *db*
|
(defstate ^:dynamic *db*
|
||||||
:start (start)
|
:start (start)
|
||||||
|
|
|
@ -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
|
||||||
{:swagger {:ui "/swagger-ui"
|
(when (:dev env)
|
||||||
:spec "/swagger.json"
|
{:swagger {:ui "/swagger-ui"
|
||||||
:data {:info {:version "0.1"
|
:spec "/swagger.json"
|
||||||
:title "commitETH API"
|
:data {:info {:version "0.1"
|
||||||
:description "commitETH API"}}}}
|
:title "commitETH API"
|
||||||
|
:description "commitETH API"}}}})
|
||||||
|
|
||||||
(context "/api" []
|
(context "/api" []
|
||||||
(GET "/top-hunters" []
|
(GET "/top-hunters" []
|
||||||
|
|
Loading…
Reference in New Issue