23 lines
741 B
Common Lisp
23 lines
741 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
|
|
`((("api") server:message-handler)
|
|
(() server:fileserver
|
|
:doc-root ,(t:test-path "" "docs"))))
|
|
(config:add-action '(:test :data) #'core:echo)
|
|
;(config:add-action '(:test :data) #'(lambda (ctx msg)))
|
|
|
|
(config:add :client :class 'client:config
|
|
:base-url "http://localhost:8899"
|
|
:doc-path "/" :api-path "/api/")
|