added GeoPortalServiceHealth under /api/health
This commit is contained in:
parent
fb6857a984
commit
44335052c3
|
@ -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);
|
||||
|
||||
}
|
||||
|
||||
}
|
|
@ -31,7 +31,7 @@
|
|||
</servlet-mapping>
|
||||
<servlet-mapping>
|
||||
<servlet-name>default</servlet-name>
|
||||
<url-pattern>/health</url-pattern>
|
||||
<url-pattern>/api/health</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
|
|
Loading…
Reference in New Issue