Created
October 12, 2009 17:36
-
-
Save christianberg/208568 to your computer and use it in GitHub Desktop.
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
(ns blog | |
(:use compojure.http.routes) | |
(:use compojure.http.servlet) | |
(:use compojure.server.jetty) | |
(:use compojure.html)) | |
(defn show-main-page [] | |
"Hello World!") | |
(defroutes main-routes | |
(GET "/" (show-main-page))) | |
(def server | |
(run-server {:port 8080} | |
"/*" (servlet main-routes))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment