Skip to content

Commit

Permalink
feat: Service health update
Browse files Browse the repository at this point in the history
  • Loading branch information
shiido committed Oct 7, 2021
1 parent 4b3a4a3 commit 49e1ea8
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/main/java/com/ai/st/zuul/controllers/IndexGetController.java
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
package com.ai.st.zuul.controllers;

import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;

import java.util.HashMap;
import java.util.Map;

@RestController
public class IndexGetController {

@GetMapping(value = "/", produces = MediaType.APPLICATION_JSON_VALUE)
@ResponseBody
public ResponseEntity<?> health() {
return new ResponseEntity<>("OK", HttpStatus.OK);
public Map<String, String> health() {
HashMap<String, String> map = new HashMap<>();
map.put("status", "st_on");
return map;
}

}

0 comments on commit 49e1ea8

Please sign in to comment.