Created
February 7, 2010 23:56
-
-
Save neotyk/297766 to your computer and use it in GitHub Desktop.
Found it very useful in last days
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 serv (:use compojure)) | |
(defroutes greetings | |
(GET "/" | |
(html [:h1 "Hello World"])) | |
(ANY "*" | |
(page-not-found))) | |
(def server (run-server {:port 8080} "/*" (servlet greetings))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment