   (reagent/render-component
    [page-component]
    application))
-
-;; set secretary to use # for the routing, eg. /#dashboard
-(secretary/set-config! :prefix "#")
 
 (defroute "/" [] (page home-anonymous))
 (defroute "/dashboard" [] (page home-authenticated))

            [goog.events :as events])
  (:import [goog.history Html5History EventType]))

(defonce chunks-state (atom '()))

;; ---

(defroute "/register" [] (page register))
(defroute "*" [] (page not-found))

;; init the html5-history support
(goog.events/listen history
                    EventType.NAVIGATE
                    #(handle-url-change %))
(.setEnabled history true)

;; load the data from the API
(fetch-chunks)
