Use instance specialization for not-found handler

This commit is contained in:
Akira Tempaku 2025-06-21 02:28:25 +09:00
parent cd747e7470
commit 19aae06f7f
Signed by: paku
GPG key ID: 5B4E8402BCC50607

View file

@ -61,7 +61,7 @@
:do (load-system pkg)
(if (string= uri "/not-found")
(let ((handler (find-symbol "HANDLE-NOT-FOUND" pkg)))
(defmethod ningle:not-found ((app ningle:app))
(defmethod ningle:not-found ((app (eql app)))
(setf (response-status ningle:*response*) 404)
(funcall handler))))
(loop