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
c71842c9
Commit
c71842c9
authored
May 15, 2022
by
6ixfalls
Committed by
GitHub
May 15, 2022
Browse files
Fix "/" Route
parent
eb64b25f
Changes
1
Show whitespace changes
Inline
Side-by-side
src/main/java/emu/grasscutter/server/http/HttpServer.java
View file @
c71842c9
...
@@ -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