Add a redirect back to the Gitea page if at /
This commit is contained in:
1 file changed
+8
@@ -55,6 +55,14 @@ app.get(
|
||||
})
|
||||
}
|
||||
)
|
||||
app.get(
|
||||
'/',
|
||||
() =>
|
||||
new Response(null, {
|
||||
status: 301,
|
||||
headers: { Location: 'https://git.lncvrt.xyz/Geometry-Dash-RE/gd-api' }
|
||||
})
|
||||
)
|
||||
app.all('*', () =>
|
||||
jsonResponse(
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user