Created
July 24, 2015 17:20
-
-
Save jprudent/ef2a7c6dbd35d2d5ca60 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 hello-world.handler | |
(:require [compojure.core :refer :all] | |
[compojure.route :as route] | |
[ring.middleware.defaults :refer [wrap-defaults site-defaults]]) | |
(:use [ring.adapter.jetty])) | |
(defroutes app-routes | |
(GET "/" [] "Salut Billy") | |
(route/not-found "Not Found")) | |
(def app | |
(wrap-defaults app-routes site-defaults)) | |
(run-jetty app {:port 8080}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment