[api] Add internal aquaviewer serving feature

This commit is contained in:
Dom Eori
2022-02-14 22:23:46 +09:00
parent 27ff23c662
commit 068081be1f
3 changed files with 43 additions and 2 deletions

View File

@@ -19,6 +19,7 @@ import java.time.LocalDateTime;
import java.util.Map;
import java.util.UUID;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import static icu.samnyan.aqua.sega.util.AquaConst.DEFAULT_KEYCHIP_ID;
@@ -41,8 +42,8 @@ public class AllNetController {
}
@GetMapping("/")
public String root() {
return "Server running";
public void root(HttpServletResponse response) throws IOException {
response.sendRedirect("web");
}
@GetMapping("/sys/test")