Skip to content
Snippets Groups Projects
Unverified Commit 647f3961 authored by Ricardo Wurmus's avatar Ricardo Wurmus
Browse files

http: Add route for /admin.

* src/cuirass/http.scm (url-handler): Handle /admin route.
parent 5ffb2c30
No related branches found
No related tags found
No related merge requests found
......@@ -284,6 +284,12 @@ Hydra format."
"Cuirass [Admin]"
(specifications-table (db-get-specifications) 'admin)
'())))
(('GET "admin")
(respond-html (html-page
"Cuirass [Admin]"
`(ul (li (a (@ (href "/admin/specifications"))
"Edit specifications")))
'())))
(('GET (or "jobsets" "specifications") . rest)
(respond-json (object->json-string
(list->vector (db-get-specifications)))))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment