1.1 --- a/freemarkerdor/src/main/java/cz/xelfi/quoridor/freemarkerdor/UI.java Sun Aug 30 14:37:47 2009 +0200
1.2 +++ b/freemarkerdor/src/main/java/cz/xelfi/quoridor/freemarkerdor/UI.java Sun Aug 30 14:44:49 2009 +0200
1.3 @@ -223,8 +223,8 @@
1.4 }
1.5
1.6 private Viewable welcomeImpl() throws JSONException {
1.7 - final Object got = base.path("games").accept(MediaType.TEXT_XML_TYPE).get(Document.class);
1.8 - Map<?,?> obj = (Map<?, ?>)convert(got);
1.9 + final Object got = base.path("games").accept(MediaType.APPLICATION_JSON_TYPE).get(JSONArray.class);
1.10 + List<?> obj = (List<?>)convert(got);
1.11 return new Viewable("index.fmt", obj);
1.12 }
1.13