diff options
author | Colin Okay <okay@toyful.space> | 2022-03-01 11:26:05 -0600 |
---|---|---|
committer | Colin Okay <okay@toyful.space> | 2022-03-01 11:26:05 -0600 |
commit | d16811187075a23883ab8d6c387043c1481a3eb2 (patch) | |
tree | a499429deff082108195f88b997f03ec4b4876c6 | |
parent | 59ed9022339bcc34ada630349083da441c957a94 (diff) |
added endpoint to fetch a single oneliner
-rw-r--r-- | src/main.lisp | 4 |
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) |