Hi,
Is it possible to serve static content from a resource?
I would like to render HTML from a resource method using explicit MVC, something like:
@Path("/")
public class RootResource {
@Produces(MediaType.TEXT_HTML)
@GET
public Viewable getHomePage() {
return new Viewable("/home.html", null);
}
}
Would this work?
Thank you,
Arul