Skip to content

Instantly share code, notes, and snippets.

@binilinlquad
Created March 11, 2021 03:26
Show Gist options
  • Save binilinlquad/4c5ac9db8eb4571340fdcfd27b43ed5f to your computer and use it in GitHub Desktop.
Save binilinlquad/4c5ac9db8eb4571340fdcfd27b43ed5f to your computer and use it in GitHub Desktop.
Config duct core
{:duct.profile/base
{:duct.core/project-ns smallshop
:duct.router/ataraxy
{:routes {[:get "/"] [:smallshop.handler/index]
[:get "/site"] [:smallshop.handler/site]
[:get "/complex"] [:smallshop.handler/complex]}}
[:duct.handler.static/ok :smallshop.handler/index]
{:body {:entries "/entries"}}
[:duct.handler.static/ok :smallshop.handler/site]
{:headers {"Content-Type" "text/html"}
:body "<html><body>Hello, Duct!</body></html>"}
}
:duct.profile/dev #duct/include "dev"
:duct.profile/local #duct/include "local"
:duct.profile/prod {}
:duct.module/logging {}
:duct.module/sql {}
:duct.module.web/site {}
:duct.module.web/api {}
:smallshop.handler/complex {}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment