fixing the path at /wekeo/gettoken

This commit is contained in:
Francesco Mangiacrapa 2021-04-08 12:59:39 +02:00
parent 93d189b0ed
commit 49c595191b
2 changed files with 3 additions and 3 deletions

View File

@ -185,13 +185,13 @@ public class WekeoResolver {
@GET
@Produces({MediaType.TEXT_HTML})
@Path("/")
@Path("")
public InputStream index(@Context HttpServletRequest req) throws WebApplicationException{
String indexFile = "/WEB-INF/jsp/wekeo.jsp";
try{
logger.info(UriResolverIndex.class.getSimpleName() +" called");
logger.info(this.getClass().getSimpleName() +" index called");
String realPath = req.getServletContext().getRealPath(indexFile);
return new FileInputStream(new File(realPath));
}catch (Exception e) {

View File

@ -51,7 +51,7 @@ body {
<div class="myTitle">The Wekeo Resolver</div>
<div class="myListOperations">Available Operations:
<p>
# authentication operator <a href="gettoken" target="_blank" title="gettoken operation">gettoken</a> (gCube AuthN Required)
# authentication operator <a href="/wekeo/gettoken" target="_blank" title="gettoken operation">gettoken</a> (gCube AuthN required)
</p>
</div>
<div class="uri-footer">