blob: 2685264c9e606cbb9a937993f587784b02adb46e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
;;; -*- Mode: Lisp; Syntax: ANSI-Common-Lisp; Base: 10 -*-
(declaim (optimize (speed 0) (safety 3) (debug 3)))
(in-package #:ldapadmin)
(defclass home-service (rest-service)
((content :initarg :content
:initform nil
:accessor content))
(:documentation ""))
(defmethod initialize-instance :after ((home-service home-service) &key)
(setf (content home-service) (format nil "Welcome to the ~a website" (title *webapp*))))
(defun home-json (&optional message errormsg)
(org-ckons-json::objects-to-json `(,(make-instance 'home-service
:message message
:errormsg errormsg))))
|