mirror of
https://github.com/richardharrington/robotwar.git
synced 2024-05-28 23:41:31 +00:00
removed initial json fetching tests from client and handler
This commit is contained in:
parent
31512947f0
commit
6d429d6da0
|
@ -11,11 +11,6 @@
|
|||
Hello World, Welcome to Robotwar.
|
||||
</p>
|
||||
<script>
|
||||
$.getJSON('json-test', function(data){
|
||||
console.log(data);
|
||||
});
|
||||
$.getJSON('worlds/2', function(data) {
|
||||
console.log(data);
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
|
|
|
@ -21,7 +21,6 @@
|
|||
(def worlds (agent (core/worlds-for-browser-display)))
|
||||
|
||||
(defroutes app-routes
|
||||
(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))))
|
||||
|
|
Loading…
Reference in New Issue
Block a user