;;; -*- Mode: Lisp; Syntax: ANSI-Common-Lisp; Base: 10 -*- (declaim (optimize (speed 0) (safety 3) (debug 3))) (in-package :snow) (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" (title *webapp*)))) (defun home-json (&optional message errormsg) (with-noauth (instance home-service) (when message (setf (message instance) message)) (when errormsg (setf (errormsg instance) errormsg))))