-
-
Save binilinlquad/4c5ac9db8eb4571340fdcfd27b43ed5f to your computer and use it in GitHub Desktop.
Config duct core
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{: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