Skip to content

Instantly share code, notes, and snippets.

@souenzzo souenzzo/exemplo.clj
Created Aug 30, 2019

Embed
What would you like to do?
(ns exemplo
(:require [io.pedestal.http :as http]))
(def routes ::invalid)
(def server-build-time
(-> {::http/type :jetty
::http/routes routes
::http/port 8080}
http/default-interceptors
http/create-server))
(defn -main-build-time
[& _]
(http/start server-build-time))
(defn server-runtime
[]
(-> {::http/type :jetty
::http/routes routes
::http/port 8080}
http/default-interceptors
http/create-server))
(defn -main-runtime
[& _]
(http/start (server-runtime)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.