added GeoPortalServiceHealth under /api/health

This commit is contained in:
Francesco Mangiacrapa 2024-10-18 17:37:45 +02:00
parent fb6857a984
commit 44335052c3
2 changed files with 18 additions and 1 deletions

View File

@ -0,0 +1,17 @@
package org.gcube.application.geoportal.service;
import javax.ws.rs.ApplicationPath;
import org.gcube.application.geoportal.service.rest.GeoportalHealth;
import org.glassfish.jersey.server.ResourceConfig;
@ApplicationPath("/api")
public class GeoPortalServiceHealth extends ResourceConfig {
public GeoPortalServiceHealth() {
registerClasses(GeoportalHealth.class);
}
}

View File

@ -31,7 +31,7 @@
</servlet-mapping> </servlet-mapping>
<servlet-mapping> <servlet-mapping>
<servlet-name>default</servlet-name> <servlet-name>default</servlet-name>
<url-pattern>/health</url-pattern> <url-pattern>/api/health</url-pattern>
</servlet-mapping> </servlet-mapping>
<servlet-mapping> <servlet-mapping>