Created
August 30, 2019 17:03
-
-
Save souenzzo/02a87bbfbc2cdd291a111716d8b6d0a1 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
(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