Commit a928243f authored by redmitry@list.ru's avatar redmitry@list.ru

add index.html homepage

parent f21a50e9
......@@ -31,6 +31,7 @@ import javax.inject.Inject;
import javax.servlet.ServletContext;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
/**
......@@ -45,6 +46,13 @@ public class WebProxyService {
@Inject
private ServletContext ctx;
@GET
@Path("/")
@Hidden
public Response getHomePage() {
return Response.ok(ctx.getResourceAsStream("/index.html"), MediaType.TEXT_HTML).build();
}
/**
* Proxy method to return Tool JSON Schema.
*
......@@ -56,11 +64,5 @@ public class WebProxyService {
public Response getToolsOntology() {
return Response.ok(ctx.getResourceAsStream("/META-INF/resources/tools.owl"), "application/rdf+xml").build();
}
// @GET
// @Path("/index.html")
// @Hidden
// public Response getHomePage() {
// return Response.ok(ctx.getResourceAsStream("/META-INF/resources/index.html"), "text/html").build();
// }
}
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment