|
|
|
@ -13,8 +13,7 @@
|
|
|
|
|
:request req
|
|
|
|
|
:content
|
|
|
|
|
[[:h1 "All Instances"]
|
|
|
|
|
[:img {:src (path :vis-all-instances-img)
|
|
|
|
|
:alt "All Instances"}]]))
|
|
|
|
|
(viz/all-instances (vis-domain/all-instance-connections!))]))
|
|
|
|
|
|
|
|
|
|
(defroutes routes
|
|
|
|
|
(GET (register! :vis-single-instance "/visualisation/instance/:uuid")
|
|
|
|
@ -24,8 +23,4 @@
|
|
|
|
|
:headers {"Content-Type" "image/svg+xml"}})
|
|
|
|
|
(GET (register! :vis-all-instances "/visualisation/all-instances")
|
|
|
|
|
[:as req]
|
|
|
|
|
(all-instances req))
|
|
|
|
|
(GET (register! :vis-all-instances-img "/visualisation/all-instances.svg")
|
|
|
|
|
[]
|
|
|
|
|
{:body (viz/all-instances (vis-domain/all-instance-connections!))
|
|
|
|
|
:headers {"Content-Type" "image/svg+xml"}}))
|
|
|
|
|
(all-instances req)))
|
|
|
|
|