package oasis.web;


import com.google.common.collect.ImmutableMap;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.Context;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
import javax.ws.rs.core.UriInfo;
import java.util.Date;

@Path("/")
public class Home{

  @GET
  @Produces(MediaType.TEXT_HTML)
  public Response get(@Context UriInfo uriInfo) {
    return Response.ok(new View("oasis/web/Home.get.html", ImmutableMap.of("date", new Date()))).build();
  }

}

@@ -13,17 +13,16 @@
 s.web;%0A%0A
-%0A
 import c
@@ -326,16 +326,17 @@
 ass Home
+ 
 %7B%0A%0A  @GE
@@ -531,10 +531,170 @@
 );%0A  %7D%0A%0A
+  @GET%0A  @Path(%22/favicon.ico%22)%0A  public Response favicon() %7B%0A    // TODO: we need a favicon!%0A    return Response.status(Response.Status.NOT_FOUND).build();%0A  %7D%0A
 %7D%0A

Add /favicon.ico resource