mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-01-10 17:23:21 +08:00
Fix "/" Route
This commit is contained in:
parent
eb64b25f12
commit
c71842c9d0
@ -141,7 +141,7 @@ public final class HttpServer {
|
|||||||
public static class DefaultRequestRouter implements Router {
|
public static class DefaultRequestRouter implements Router {
|
||||||
@Override public void applyRoutes(Express express, Javalin handle) {
|
@Override public void applyRoutes(Express express, Javalin handle) {
|
||||||
express.get("/", (request, response) -> {
|
express.get("/", (request, response) -> {
|
||||||
File file = new File(HTTP_STATIC_FILES.errorFile);
|
File file = new File(HTTP_STATIC_FILES.indexFile);
|
||||||
if(!file.exists())
|
if(!file.exists())
|
||||||
response.send("""
|
response.send("""
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
|
Loading…
Reference in New Issue
Block a user