Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
routes
(defroutes main-routes
(GET "/" []
(-> (main-page)
ui-template))
(GET "/topology/:id" [id & m]
(-> (topology-page id (:window m) true)
ui-template))
(GET "/topology/:id/component/:component" [id component & m]
(log-message "REQUEST: " request)
(-> (component-page id component (:window m) true)
ui-template))
(GET "/topology/:id/task/:task" [id task & m]
(-> (task-page id (Integer/parseInt task) (:window m))
ui-template))
(route/resources "/")
(route/not-found "Page not found"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.