diff options
Diffstat (limited to 'init.lisp')
-rw-r--r-- | init.lisp | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -1,6 +1,6 @@ ;;;; init.lisp -(in-package #:dnd) +(in-package #:dnd.api) (defun init-db (&optional config) (if config @@ -9,3 +9,13 @@ 'db:mp-store :directory (merge-pathnames "dnd-store/" (user-homedir-pathname)) :subsystems (list (make-instance 'db:store-object-subsystem))))) + +(defvar *dnd-arena* nil + "The instance of the HTTP server.") + +(defun conjure-arena () + (setf *dnd-arena* (lzb:create-server)) + (lzb:install-app *dnd-arena* 'api) + (lzb:start-server *dnd-arena*)) + + |