view server.clj @ 89:7d6514aca622 laserkard

no more log files
author Robert McIntyre <rlm@mit.edu>
date Mon, 26 Jul 2010 02:22:46 -0400
parents 874a6a2c28cf
children 5b0753c6f34d
line wrap: on
line source
1 (ns laserkard.server
2 (:use (compojure.http request servlet session routes)
3 (compojure.server jetty)
4 (compojure control)
5 (laserkard buy-temp faq)
7 ))
9 (defroutes example
10 (GET "/index.clj" [] "<h1> hello, connie, good to meet you</h1>")
11 (GET "/buy-temp.clj" [] (buy-gen))
12 (GET "/faq.clj" [] (faq))
13 )
17 (defserver laserkard-server
18 {:port 9000 :host "localhost"}
19 "/*" (servlet example))