diff options
Diffstat (limited to 'service/home.lisp')
| -rw-r--r-- | service/home.lisp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/service/home.lisp b/service/home.lisp new file mode 100644 index 0000000..8166722 --- /dev/null +++ b/service/home.lisp @@ -0,0 +1,18 @@ +;;; -*- Mode: Lisp; Syntax: ANSI-Common-Lisp; Base: 10 -*- +(declaim (optimize (speed 0) (safety 3) (debug 3))) + +(in-package #:music-dispensary) + +;; ========================================================================== ;; + +(defclass home (rest-service) + ((content :initarg :content + :initform nil + :accessor content)) + (:documentation "")) + +(defmethod initialize-instance :after ((home home) &key) + (setf (content home) (concatenate 'string "Welcome to the " (title *webapp*) "! You can browse for a LilyPond file of a piece of music you are interested in, select a paper size, and " (title *webapp*) " will generate a PDF of the music for you."))) + +(defun home-json () + (objects-to-json `(,(make-instance 'home)))) |
