blob: fd9e5ee2bb9f9f9b79c3f0cc050dcebc60305e68 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
(ns gallifrey.config
(:require [integrant.core :as ig]))
(defn config
[app-config]
(let [conf {:gallifrey/store
{:db-server (:db-server app-config)
:db-name "gallifrey"}
:gallifrey/handler
{:store (ig/ref :gallifrey/store)}
:gallifrey/http-server
{:port (:http-port app-config)
:handler (ig/ref :gallifrey/handler)}}]
(ig/load-namespaces conf)
conf))
|