Signed-off-by: Skylar "The Cobra" Widulski <cobra@vern.cc>
This commit is contained in:
Skylar "The Cobra" Widulski 2023-12-05 14:53:11 -05:00
parent 0a2c7aebeb
commit d8648530b7
Signed by: cobra
GPG Key ID: 4FD8F812083FF6F9
2 changed files with 5 additions and 1 deletions

View File

@ -23,7 +23,8 @@
#:use-module (web uri)
#:use-module (web request)
#:use-module (web http)
#:use-module (ice-9 textual-ports))
#:use-module (ice-9 textual-ports)
#:use-module (ice-9 binary-ports))
(define (handler request request-body)
(let ((uri (request-uri request))
@ -40,6 +41,9 @@
((equal? path "/style.css")
(values '((content-type . (text/css)))
(call-with-input-file "static/style.css" get-string-all)))
((equal? path "/favicon.png")
(values '((content-type . (image/png)))
(call-with-input-file "static/logo.png" get-bytevector-all)))
((equal? path "/proxy")
(proxy-page (uri-query uri)))
((or (equal? path "/")

BIN
static/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB