diff options
Diffstat (limited to 'src')
-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) |