Add test for set-routes
This commit is contained in:
parent
234b2e50f3
commit
7641ec5f61
10 changed files with 115 additions and 9 deletions
tests/routes
11
tests/routes/not-found.lisp
Normal file
11
tests/routes/not-found.lisp
Normal file
|
@ -0,0 +1,11 @@
|
|||
(defpackage #:ningle-fbr-test/routes/not-found
|
||||
(:use #:cl)
|
||||
(:import-from #:lack/response)
|
||||
(:import-from #:ningle)
|
||||
(:export #:handle-not-found))
|
||||
(in-package #:ningle-fbr-test/routes/not-found)
|
||||
|
||||
(defun handle-not-found ()
|
||||
(setf (lack/response:response-status ningle:*response*)
|
||||
404)
|
||||
"Not Found")
|
Loading…
Add table
Add a link
Reference in a new issue