Browse Source

404 fix

master
gsd 2 weeks ago
parent
commit
a2c65a4b82
  1. 10
      src/main/java/app/controllers/other/PulseController.java

10
src/main/java/app/controllers/other/PulseController.java

@ -22,7 +22,7 @@ import java.util.HashSet;
* контролллер для проверки жива ли эта хуйня и че там по бд
*/
@RestController
@RequestMapping("/api/pulse")
@RequestMapping("/api")
public class PulseController {
DBService dbService;
@ -41,7 +41,7 @@ public class PulseController {
this.waitAfterNextAspect = waitAfterNextAspect;
}
@GetMapping(value = {"/db", "/"})
@GetMapping(value = {"/pulse/db", "/pulse"})
public ResponseEntity<Long> getDBPulse() {
return new ResponseEntity(dbService.getDBServerTime(), HttpStatus.OK);
}
@ -50,17 +50,17 @@ public class PulseController {
* ЕСЛИ 0 ЗНАЧИТ ЗАЕБИСЬ
* @return
*/
@GetMapping("/db/diff")
@GetMapping("/pulse/db/diff")
public ResponseEntity<Long> getDiff() {
return new ResponseEntity<>(onlineUpdater.getDifferentReplica(), HttpStatus.OK);
}
@GetMapping("/services")
@GetMapping("/pulse/services")
public ResponseEntity<HashMap<String, Long>> getServices() {
return new ResponseEntity<>(statsService.getServices(), HttpStatus.OK);
}
@GetMapping("/ratelimit")
@GetMapping("/pulse/ratelimit")
@WaitAfterNext(order = "ratelimitcheck")
@CheckWebAccess
@CheckPermitionFlag(flag = "z")

Loading…
Cancel
Save