got handler serving html file

This commit is contained in:
Richard Harrington 2013-08-17 17:02:51 -04:00
parent f5af7a3724
commit 044946ac93

View File

@ -21,12 +21,11 @@
(def worlds (agent (core/worlds-for-browser-display)))
(defroutes app-routes
(GET "/" [] "Hello World, Welcome to Robotwar.")
(GET "/json-test" [] (response/response {:foo 6 :bar 8}))
(GET "/programs" [] (response/response test-programs/programs))
(GET "/worlds/:n" [n] (response/response
(take-drop-send worlds (Integer/parseInt n))))
(route/resources "/")
(route/files "/")
(route/not-found "Not Found"))
(def app