view server.clj @ 75:874a6a2c28cf laserkard

session with nick. redisigned faq page
author Robert McIntyre <rlm@mit.edu>
date Tue, 29 Jun 2010 15:36:30 -0400
parents ad52bd1a084b
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))