aboutsummaryrefslogtreecommitdiff
path: root/weeb/router.scm
diff options
context:
space:
mode:
authorJakob L. Kreuze2026-07-11 14:13:01 -0400
committerJakob L. Kreuze2026-07-11 16:40:36 -0400
commitaccdc69892dec21502f70c50f98e998730f20ee8 (patch)
treece46aa9d6753674d17dfcce90a984f216e898652 /weeb/router.scm
parent5ba75e77c2b7769c700261e21ca7ab968e7f1960 (diff)
Response objects
Diffstat (limited to 'weeb/router.scm')
-rw-r--r--weeb/router.scm5
1 files changed, 1 insertions, 4 deletions
diff --git a/weeb/router.scm b/weeb/router.scm
index 575860b..689084a 100644
--- a/weeb/router.scm
+++ b/weeb/router.scm
@@ -69,11 +69,8 @@
((_ name route* ...)
#'(define name (list (%handle-route route*) ...))))))
-(use-modules (weeb fcgi))
(define (default-handler request)
- (fcgi-display "Status: 404 Not Found\r\n")
- (fcgi-display "Content-type: text/html\r\n\r\n")
- (fcgi-display "Route not found.\n"))
+ '(404 "Route not found."))
(define (iter-routes request router)
(match router

© 2015 - 2026 Jakob L. Kreuze