misc fixes

This commit is contained in:
Chris Anderson
2024-12-03 01:17:31 +00:00
parent 0029b04af1
commit 601a335839
4 changed files with 29 additions and 20 deletions

View File

@@ -28,6 +28,10 @@ app.get("/_ready", (_, res) => {
}
});
app.get("config.json", (_, res) => {
res.json({ EMULATOR_ENDPOINT: conf.EMULATOR_ENDPOINT });
});
const bypass = (req, res) => {
if (req.method === "OPTIONS") {
res.statusCode = 200;