[general] Add a simple boot checker and add debug message

This commit is contained in:
samnyan
2020-04-20 10:48:41 +09:00
parent 14dec1e3e3
commit 7fc1127026
5 changed files with 123 additions and 2 deletions

View File

@@ -6,6 +6,7 @@ import icu.samnyan.aqua.sega.allnet.util.Decoder;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;
@@ -32,6 +33,16 @@ public class AllNetController {
this.PORT = PORT;
}
@GetMapping("/")
public String root() {
return "Server running";
}
@GetMapping("/sys/test")
public String selfTest() {
return "Server running";
}
@PostMapping(value = "/sys/servlet/PowerOn", produces = "text/plain")
public String powerOn(InputStream dataStream) throws IOException {