aboutsummaryrefslogtreecommitdiff
path: root/lazybones.lisp
diff options
context:
space:
mode:
authorColin Okay <okay@toyful.space>2022-02-07 15:26:26 -0600
committerColin Okay <okay@toyful.space>2022-02-07 15:26:26 -0600
commit099f6509310bdbb2507a3ae6a119860885d99543 (patch)
treeef273785a567c0d41c6acd21f5dd5e799bc7f35d /lazybones.lisp
parentb48bc4a09c1a44a2b1151ec5fa2452965a76ae95 (diff)
debugging post body deserialization
Diffstat (limited to 'lazybones.lisp')
-rw-r--r--lazybones.lisp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lazybones.lisp b/lazybones.lisp
index 9b767bf..45da60b 100644
--- a/lazybones.lisp
+++ b/lazybones.lisp
@@ -301,6 +301,7 @@ making a new one if not."
,the-app
(make-instance
',endpoint-class
+ :method ,method
:route ,route
:pattern ',dispatch-pattern
:doc ,documentation
@@ -308,6 +309,9 @@ making a new one if not."
:function (lambda ,params ,@real-body)
,@endpoint-initargs))))))
+(defmacro defendpoint* (method route options &rest body)
+ "Like DEFENDPOINT but uses the current package name as the app name."
+ `(defendpoint ,(intern (package-name cl:*package*)) ,method ,route ,options ,@body))
;;; utilities