Skip to content

Instantly share code, notes, and snippets.

@lancecarlson
Created April 4, 2009 21:09
Show Gist options
  • Save lancecarlson/90291 to your computer and use it in GitHub Desktop.
Save lancecarlson/90291 to your computer and use it in GitHub Desktop.
(use 'compojure)
(defroutes my-app
(GET "/"
(html [:h1 "Hello World"]))
(ANY "*"
(page-not-found)))
(run-server {:port 8080}
"/*" (servlet my-app))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment