Skip to content
Snippets Groups Projects
Commit 14e8d5fb authored by Gaelle.Barris's avatar Gaelle.Barris
Browse files

add controller

parent d46f460b
No related branches found
No related tags found
No related merge requests found
package fr.gouv.siig.descartes.jobrun.controller;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.CrossOrigin;
@Controller
public class DescartesCheckController {
@CrossOrigin
@GetMapping("/version")
public String version() {
return "redirect:/manage/info";
}
@CrossOrigin
@GetMapping("/info")
public String info() {
return "redirect:/manage/info";
}
@CrossOrigin
@GetMapping("/metrics")
public String metrics() {
return "redirect:/manage/metrics";
}
@CrossOrigin
@GetMapping("/health")
public String health() {
return "redirect:/manage/health";
}
@CrossOrigin
@GetMapping("/prometheus")
public String prometheus() {
return "redirect:/manage/prometheus";
}
}
package fr.gouv.siig.descartes.jobrun.controller;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
@Controller
public class DescartesHomeController {
@CrossOrigin
@RequestMapping(value= {"/"})
public @ResponseBody String home() {
return "Descartes (D-JOBRUNMAP) WebServices: OK";
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment