Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
ziqian zhang
Grasscutter
Commits
3e2ff211
Commit
3e2ff211
authored
May 16, 2022
by
Magix
Committed by
GitHub
May 16, 2022
Browse files
Merge pull request #928 from 6ixfalls/dispatch-fix
Fix "/" Route
parents
58a5ad49
c71842c9
Changes
1
Show whitespace changes
Inline
Side-by-side
src/main/java/emu/grasscutter/server/http/HttpServer.java
View file @
3e2ff211
...
@@ -141,7 +141,7 @@ public final class HttpServer {
...
@@ -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
.
error
File
);
File
file
=
new
File
(
HTTP_STATIC_FILES
.
index
File
);
if
(!
file
.
exists
())
if
(!
file
.
exists
())
response
.
send
(
"""
response
.
send
(
"""
<!DOCTYPE html>
<!DOCTYPE html>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment