diff options
author | Colin Okay <colin@cicadas.surf> | 2022-12-26 15:22:04 -0800 |
---|---|---|
committer | Colin Okay <colin@cicadas.surf> | 2022-12-26 15:22:04 -0800 |
commit | 79272ef4a0cf6e3f93333f239dd36159202fbbba (patch) | |
tree | 6a4d0b4434403f968c45af28235f089a73de6925 /serialization.lisp | |
parent | 7bbed3ba5c7fea74a8fd7edbfb2b5f3205e4b590 (diff) |
Add: a basic json endpoint to return hall-of-fame data
Diffstat (limited to 'serialization.lisp')
-rw-r--r-- | serialization.lisp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/serialization.lisp b/serialization.lisp new file mode 100644 index 0000000..7066712 --- /dev/null +++ b/serialization.lisp @@ -0,0 +1,13 @@ +;;;; serialization.lisp + + + +(in-package :dungeons-and-deadlines) + +(defun hall-of-fame-hero-view (hero) + (json:to-json + (list :name (hero-name hero) + :uid (uid hero) + :renown (renown hero) + :title (hero-title hero) + :class (hero-class hero)))) |