Skip to content

Instantly share code, notes, and snippets.

@almost
Created May 25, 2012 13:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save almost/2788219 to your computer and use it in GitHub Desktop.
Save almost/2788219 to your computer and use it in GitHub Desktop.
(ns hello-app.core
(:use compojure.core)
(:require [compojure.route :as route]
[compojure.handler :as handler]))
(defroutes main-routes
(GET "/" [] "<h1>Hello World Wide Web!</h1>")
(route/resources "/")
(route/not-found "Page not found"))
(def app
(handler/site main-routes))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment