aboutsummaryrefslogtreecommitdiff
path: root/src/protocol.lisp
diff options
context:
space:
mode:
authorcolin <colin@cicadas.surf>2024-05-11 12:05:54 -0700
committercolin <colin@cicadas.surf>2024-05-11 12:05:54 -0700
commit887818ec9bcfcf288ed932a566ed6219f5b9f212 (patch)
tree5d6797c148d09a3f919eda86a5b7fe87c7bfb86c /src/protocol.lisp
parent0ed31297b4ed67ac86f683b4806acbfab73190ec (diff)
Add: kitchensink example
Diffstat (limited to 'src/protocol.lisp')
-rw-r--r--src/protocol.lisp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/protocol.lisp b/src/protocol.lisp
index d25aa22..300195f 100644
--- a/src/protocol.lisp
+++ b/src/protocol.lisp
@@ -153,8 +153,12 @@ AUTHORIZE while handling endpoint-class instance EP."
"Redirect to URL."
(http:redirect url :code http:+http-see-other+))
-(defun redirect-to (class &rest kwargs)
+(defun endpoint-redirect (class &rest kwargs)
"Redirect to another endpoint. CLASS can be either a symbol or a
class. KWARGS is a PLIST of keyword arguments supplied to the
CLASS' route builder function."
(redirect (apply #'route-to class kwargs)))
+
+(defun get-cookie (name)
+ "Returns the cookie with name NAME the actively"
+ (http:cookie-in name))