deploy: f226cc13eb1e626d0218f8fd715b3f40d776e679

This commit is contained in:
SukkaBot
2022-05-04 08:26:02 +00:00
parent 5659a1cd6b
commit 05f783aac0
2 changed files with 19 additions and 3 deletions

View File

@@ -1,6 +1,22 @@
const url = $request.url;
const body = url === '/region'
const body = url.endsWith('region') || url.endsWith('region/')
? 'OK'
: $response.body
$done({ body })
if ($request.method === 'OPTION') {
$done({})
} else {
$done({
status: 200,
body,
headers: {
'Content-Type': 'text/plain; charset=utf-8',
'Access-Control-Allow-Origin': '*',
'Access-Control-Allow-Credentials': '*',
'Access-Control-Allow-Headers': 'origin,range,hdntl,hdnts',
'Access-Control-Allow-Methods': 'GET,HEAD,POST,PUT,DELETE,OPTIONS',
'Access-Control-Expose-Headers': 'Server,range,hdntl,hdnts,Akamai-Mon-Iucid-Ing,Akamai-Mon-Iucid-Del,Akamai-Request-BC',
'Access-Control-Max-Age': '86400'
}
})
}

View File

@@ -24,7 +24,7 @@
<main class="container">
<h1>Sukka Surge Ruleset Server</h1>
<p>Made by <a href="https://skk.moe">Sukka</a> | <a href="https://github.com/SukkaW/Surge/">Source @ GitHub</a> | Licensed under <a href="https://github.com/SukkaW/Surge/blob/master/LICENSE" target="_blank">AGPL-3.0</a></p>
<p>Last Updated: 2022-05-04T07:45:57.276Z</p>
<p>Last Updated: 2022-05-04T08:26:01.161Z</p>
<hr>
<br>
<ul>