From 647f3961fa18bcb87f1ae9b6531644ba147dec72 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Wed, 30 Oct 2019 13:00:14 +0100 Subject: http: Add route for /admin. * src/cuirass/http.scm (url-handler): Handle /admin route. --- src/cuirass/http.scm | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') diff --git a/src/cuirass/http.scm b/src/cuirass/http.scm index d1362b5..7579e1a 100644 --- a/src/cuirass/http.scm +++ b/src/cuirass/http.scm @@ -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))))) -- cgit v1.2.3