Mercurial > laserkard
view server.clj @ 71:ad52bd1a084b laserkard
Now there is no HTML whatsoever\!
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Tue, 22 Jun 2010 22:42:11 -0400 |
parents | 751fb9fd445b |
children | 874a6a2c28cf |
line wrap: on
line source
1 (ns laserkard.server2 (:use (compojure.http request servlet session routes)3 (compojure.server jetty)4 (compojure control)5 (laserkard buy-temp)7 ))9 (defroutes example10 (GET "/index.clj" [] "<h1> hello, connie, good to meet you</h1>")11 (GET "/buy-temp.clj" [] (buy-gen))12 )16 (defserver laserkard-server17 {:port 9000 :host "localhost"}18 "/*" (servlet example))