From d16811187075a23883ab8d6c387043c1481a3eb2 Mon Sep 17 00:00:00 2001 From: Colin Okay Date: Tue, 1 Mar 2022 11:26:05 -0600 Subject: added endpoint to fetch a single oneliner --- src/main.lisp | 4 ++++ 1 file changed, 4 insertions(+) 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) -- cgit v1.2.3