|
|
@ -20,7 +20,7 @@ stop processing the request.
|
|
|
|
(handle :get (uri-fun :uri \"/path/to/page\"/) @content-type (args) (body))"
|
|
|
|
(handle :get (uri-fun :uri \"/path/to/page\"/) @content-type (args) (body))"
|
|
|
|
`(tbnl:define-easy-handler ,uri ,params
|
|
|
|
`(tbnl:define-easy-handler ,uri ,params
|
|
|
|
(unless (eq ,method (tbnl:request-method*))
|
|
|
|
(unless (eq ,method (tbnl:request-method*))
|
|
|
|
(setf (tbnl:return-code*) tbnl:+http-not-found+)
|
|
|
|
(setf (tbnl:return-code*) tbnl:+http-method-not-allowed+)
|
|
|
|
(tbnl:abort-request-handler))
|
|
|
|
(tbnl:abort-request-handler))
|
|
|
|
(setf (tbnl:content-type* tbnl:*reply*) ,content-type)
|
|
|
|
(setf (tbnl:content-type* tbnl:*reply*) ,content-type)
|
|
|
|
,@body))
|
|
|
|
,@body))
|
|
|
|