diff options
| author | ckonstanski <ckonstanski@pippiandcarlos.com> | 2018-01-20 22:07:54 -0700 |
|---|---|---|
| committer | ckonstanski <ckonstanski@pippiandcarlos.com> | 2018-01-20 22:07:54 -0700 |
| commit | c2f77f4296c6b13eeb86067a772192b70577bca6 (patch) | |
| tree | 8437af60a559b7ed206fe4b256b4ea583292b9f1 /service/home.lisp | |
initial commit
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..488b86f --- /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 #:ldapadmin) + +;; ========================================================================== ;; + +(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*)))) + +(defun home-json () + (objects-to-json `(,(make-instance 'home)))) |
