summaryrefslogtreecommitdiff
path: root/endpoints.lisp
diff options
context:
space:
mode:
authorcolin <colin@cicadas.surf>2023-02-20 17:49:42 -0800
committercolin <colin@cicadas.surf>2023-02-20 17:49:42 -0800
commit2be10a3b137d7bcc75b02884ddbe72608f85f9b0 (patch)
tree8230da3fa4395df6adc90001db395c0de21cfd6f /endpoints.lisp
parent3249a20b60e9652ec772f057e540f60bbcf1f024 (diff)
Refactor: to use render protocol
Diffstat (limited to 'endpoints.lisp')
-rw-r--r--endpoints.lisp6
1 files changed, 3 insertions, 3 deletions
diff --git a/endpoints.lisp b/endpoints.lisp
index e33a362..af07f6e 100644
--- a/endpoints.lisp
+++ b/endpoints.lisp
@@ -54,7 +54,7 @@ I.e. It should be called within the scope of a request handler."
`(a:if-let (,session (current-session))
(let ((,player (session-player ,session)))
(declare (ignorable ,player))
- ,@body)
+ ,@body)
(redirect-to ,redirect))))
@@ -125,8 +125,8 @@ functions in url parameters in endpoint definitions."
;;; SESSION ENDPOINTS
(defendpoint* :get "/tavern" () ()
- (with-session (player)
- (tavern player)))
+ (with-session (me)
+ (tavern me)))
(defendpoint* :get "/godess-shrine" () ()
(with-session (player)