From aee7f487f97c10c15b6c7b48156cc95db19d9137 Mon Sep 17 00:00:00 2001 From: Grant Shoshin Shangreaux Date: Sat, 7 Jan 2023 11:12:15 -0600 Subject: First Draft of hero creation and login --- api.lisp | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 api.lisp (limited to 'api.lisp') diff --git a/api.lisp b/api.lisp deleted file mode 100644 index cecacb4..0000000 --- a/api.lisp +++ /dev/null @@ -1,25 +0,0 @@ -;;;; api.lisp -- http routes for dnd - -(in-package :dnd) - -(lzb:provision-app (api) - :title "Dungeons & Deadlines" - :version "0.1.0" - :prefix "/api" - :content-type "application/json" - :auth 'default-auth) - -(defun default-auth (&rest ignore) - (declare (ignore ignore)) - t) - - - -(defendpoint* :get "/hall-of-legends" ((filter-by identity)) - (:auth t) - "Get a list of heros sorted by renown" - (json:to-json - (list :heroes - (sort (copy-seq (db:store-objects-with-class 'hero)) - #'> - :key #'renown)))) -- cgit v1.2.3