aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Okay <okay@toyful.space>2022-03-01 11:26:05 -0600
committerColin Okay <okay@toyful.space>2022-03-01 11:26:05 -0600
commitd16811187075a23883ab8d6c387043c1481a3eb2 (patch)
treea499429deff082108195f88b997f03ec4b4876c6
parent59ed9022339bcc34ada630349083da441c957a94 (diff)
added endpoint to fetch a single oneliner
-rw-r--r--src/main.lisp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main.lisp b/src/main.lisp
index 7cd6002..b6e0e3c 100644
--- a/src/main.lisp
+++ b/src/main.lisp
@@ -780,6 +780,10 @@ admin privileges are allowed to perform this action."
(apply 'edit-oneliner entry (api-contributor token) (lzb:request-body))
"true")
+(defendpoint* :get "/oneliner/:entry a-oneliner-id:" () ()
+ "Gets a oneliner by id."
+ (to-json entry))
+
(defendpoint* :put "/oneliner/:entry a-oneliner-id:/flag" ((token an-api-token)
(value a-boolean))
(:auth t)