inline not-found function
This commit is contained in:
parent
afd3088cee
commit
e410cef1f4
4
main.fnl
4
main.fnl
@ -33,8 +33,6 @@
|
|||||||
false)
|
false)
|
||||||
(out:write_chunk text true))
|
(out:write_chunk text true))
|
||||||
|
|
||||||
(fn not-found [out] (send-error out 404 "not found"))
|
|
||||||
|
|
||||||
(fn slurp [filename]
|
(fn slurp [filename]
|
||||||
(with-open [f (io.open filename "r")] (f:read "*a")))
|
(with-open [f (io.open filename "r")] (f:read "*a")))
|
||||||
|
|
||||||
@ -79,7 +77,7 @@
|
|||||||
"/sign"
|
"/sign"
|
||||||
(handle-sign-csr out)
|
(handle-sign-csr out)
|
||||||
_
|
_
|
||||||
(not-found out))))
|
(send-error out 404 "not found"))))
|
||||||
|
|
||||||
|
|
||||||
(fn new-server []
|
(fn new-server []
|
||||||
|
Loading…
Reference in New Issue
Block a user