Skip to content

Instantly share code, notes, and snippets.

@deadghost
Created September 25, 2018 08:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deadghost/bee98e65d29bf242c7428d880680470d to your computer and use it in GitHub Desktop.
Save deadghost/bee98e65d29bf242c7428d880680470d to your computer and use it in GitHub Desktop.
(web/run
(::http/servlet
(-> {::http/routes routes
::http/join? true
::http/router :linear-search
::http/interceptors [intc/coerce-body
intc/content-negotiate
http/log-request
http/not-found
mw/content-type
proute/query-params
proute/path-params-decoder
proute/method-param ; might not need this
secure-headers
proute/router
mw/cookies]}
(http/create-servlet)))
{:host "localhost"
:port 1232
:path "/api/v0"
:virtual-host ["localhost"]})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment