aboutsummaryrefslogtreecommitdiff
path: root/module
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2020-08-06 18:30:49 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2020-08-06 18:30:49 +0200
commit8fe3e26981ef8eccfdff056ef5d3fc754e2329bd (patch)
tree9afa147e1c1171c152013cbdf3a773352996e5c9 /module
parentStart moving popup's away from parents. (diff)
downloadcalp-8fe3e26981ef8eccfdff056ef5d3fc754e2329bd.tar.gz
calp-8fe3e26981ef8eccfdff056ef5d3fc754e2329bd.tar.xz
Add favicon.
Diffstat (limited to 'module')
-rw-r--r--module/entry-points/server.scm5
1 files changed, 5 insertions, 0 deletions
diff --git a/module/entry-points/server.scm b/module/entry-points/server.scm
index 7fa6ceb0..4e6332ad 100644
--- a/module/entry-points/server.scm
+++ b/module/entry-points/server.scm
@@ -68,6 +68,11 @@
(return '((content-type text/html))
(sxml->html-string '(a (@ (href "/today")) "Gå till idag"))))
+ (GET "/favicon.ico" ()
+ (return
+ `((content-type image/svg+xml))
+ (call-with-input-file "static/calendar.svg" read-string)))
+
;; TODO any exception in this causes the whole page to fail
;; It would be much better if most of the page could still make it.
(GET "/week/:start-date.html" (start-date)