Commit 3e2ff211 authored by Magix's avatar Magix Committed by GitHub
Browse files

Merge pull request #928 from 6ixfalls/dispatch-fix

Fix "/" Route
parents 58a5ad49 c71842c9
......@@ -141,7 +141,7 @@ public final class HttpServer {
public static class DefaultRequestRouter implements Router {
@Override public void applyRoutes(Express express, Javalin handle) {
express.get("/", (request, response) -> {
File file = new File(HTTP_STATIC_FILES.errorFile);
File file = new File(HTTP_STATIC_FILES.indexFile);
if(!file.exists())
response.send("""
<!DOCTYPE html>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment