1.1 --- a/freemarkerdor/src/main/java/cz/xelfi/quoridor/freemarkerdor/UI.java Mon Sep 28 14:42:19 2009 +0200
1.2 +++ b/freemarkerdor/src/main/java/cz/xelfi/quoridor/freemarkerdor/UI.java Mon Oct 05 10:23:27 2009 +0200
1.3 @@ -136,12 +136,12 @@
1.4
1.5 @GET
1.6 @Produces(MediaType.TEXT_HTML)
1.7 - public Viewable welcome() {
1.8 + public Viewable welcome(@QueryParam("maxItems") @DefaultValue("10") int maxItems) {
1.9 Viewable v = checkLogin();
1.10 if (v != null) {
1.11 return v;
1.12 }
1.13 - return welcomeImpl();
1.14 + return welcomeImpl("maxItems", maxItems);
1.15 }
1.16
1.17 @GET
1.18 @@ -340,7 +340,7 @@
1.19 );
1.20
1.21 Client client = new Client();
1.22 - base = client.resource(new URI("http://localhost:" + port + "/api/"));
1.23 + base = client.resource(new URI("http://quoridor.xelfi.cz:" + 80 + "/api/"));
1.24
1.25 final String baseUri = "http://localhost:" + port + "/";
1.26 final HttpServer server = HttpServerFactory.create(baseUri, rc);