diff options
Diffstat (limited to 'module/entry-points')
-rw-r--r-- | module/entry-points/server.scm | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/module/entry-points/server.scm b/module/entry-points/server.scm index 6ab9a2d1..deda98b4 100644 --- a/module/entry-points/server.scm +++ b/module/entry-points/server.scm @@ -63,6 +63,11 @@ (define-method (make-make-routes) (make-routes + ;; Manual redirect to not reserve root. + (GET "/" () + (return '((content-type text/html)) + (sxml->html-string '(a (@ (href "/today")) "Gå till idag")))) + (GET "/week/:start-date.html" (start-date) (let* ((start-date (start-of-week (parse-iso-date start-date) |