     (kixi.hecuba.web.property/create-routes querier commander)
     (kixi.hecuba.web.messages/create-routes querier commander)
 
-
     ;; Projects
-    [["project/" :id] project]
-    ["projects/" projects]
-    ["projects" (->Redirect 307 projects)]
+    [["project/" :id] (:project handlers)]
+    ["projects/" (:projects handlers)]
+    ["projects" (->Redirect 307 (:projects handlers))]
 
     ["hecuba-js/react.js" (->Resources {:prefix "sb-admin/"})]
     ["" (->Resources {:prefix "sb-admin/"})]

  Lifecycle
  (init [_ system] system)
  (start [_ system]
    (let [querier (:querier system)
          commander (:commander system)
          project (project-resource querier)
          projects (projects-resource querier commander project)]
      (-> system
          (add-bidi-routes
           config
           (make-routes (first (:kixi.hecuba.kafka/producer-config (:hecuba/kafka system)))
                        querier
                        commander
                        project
                        projects))
          (update-in [:handlers] merge {:project project :projects projects}))))
  (stop [_ system] system))

(defn readings [req]
  {:status 200 :body (slurp (io/resource "reading.html"))})

(defn create-handlers [commander querier]
  (let [project (project-resource querier)]
    {:project project
     :projects (projects-resource querier commander project)}))

(defn make-routes [producer-config querier commander handlers]
  ["/"
   [["" (->Redirect 307 tables)]
    ["index.html" index]
