18 lines
589 B
Java
18 lines
589 B
Java
package eu.dnetlib.loginservice.controllers;
|
|
|
|
import org.apache.log4j.Logger;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RequestMethod;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
@RestController
|
|
public class HealthController {
|
|
private final Logger log = Logger.getLogger(this.getClass());
|
|
|
|
@RequestMapping(value = {"", "/health_check"}, method = RequestMethod.GET)
|
|
public String hello() {
|
|
log.debug("Hello from Login service!");
|
|
return "Hello from Login service!";
|
|
}
|
|
}
|