Created
January 6, 2011 19:19
-
-
Save mirrormatch/768398 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 comp1.core | |
(:use compojure.core) | |
(:require [compojure.route :as route] | |
[ring.adapter.jetty :as jetty])) | |
(defroutes helloworld-routes | |
(ANY "/" {} {:body "Hello Compojure!"}) | |
(route/not-found "Page not found")) | |
(defn start-server [] | |
(future (jetty/run-jetty (var helloworld-routes) {:port 8081}))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment