From c2f77f4296c6b13eeb86067a772192b70577bca6 Mon Sep 17 00:00:00 2001 From: ckonstanski Date: Sat, 20 Jan 2018 22:07:54 -0700 Subject: initial commit --- service/home.lisp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 service/home.lisp (limited to 'service/home.lisp') 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)))) -- cgit v1.3