cl-scopes/test/etc/config-web.lisp

25 lines
622 B
Common Lisp

;;;; cl-scopes/test/etc/config-web
(in-package :scopes/test-web)
(config:root :env-keys '(:address :port))
(config:add :logger
:class 'logging:config
:loglevel :debug
:logfile (t:test-path "scopes-test.log" "log")
:console nil)
(config:add :server
:class 'server:config
:port "8899"
:routes
`((("hx") server:message-handler :html-responder cs-hx:response)
(() server:fileserver
:doc-root ,(t:test-path "" "docs"))))
(config:add-action '(:test :data) #'core:echo)
(config:add :client
:class 'client:config
:base-url "http://localhost:8899"
:doc-path "/" :api-path "/hx/")