mirror of
https://git.mirrors.martin98.com/https://github.com/sub-store-org/Sub-Store.git
synced 2025-08-09 23:59:01 +08:00
Fixed Loon Bug
This commit is contained in:
parent
966d1e6ab9
commit
4cb8ba1af9
@ -106,17 +106,21 @@ $app.get("/api/env", async (req, res) => {
|
||||
});
|
||||
});
|
||||
|
||||
$app.route("/")
|
||||
.get(async (req, res) => {
|
||||
// 302 redirect
|
||||
res.set("location", "https://sub-store.vercel.app/").status(302).end();
|
||||
})
|
||||
.options(async (req, res) => {
|
||||
$app.get("/", async (req, res) => {
|
||||
// 302 redirect
|
||||
res.set("location", "https://sub-store.vercel.app/").status(302).end();
|
||||
});
|
||||
|
||||
// handle preflight request for QX
|
||||
if (ENV().isQX) {
|
||||
$app.options("/", async (req, res) => {
|
||||
res.status(200).end();
|
||||
})
|
||||
.all(async (req, res) => {
|
||||
res.send("Hello from sub-store, made with ❤️ by Peng-YM");
|
||||
});
|
||||
};
|
||||
|
||||
$app.all("/", async (req, res) => {
|
||||
res.send("Hello from sub-store, made with ❤️ by Peng-YM");
|
||||
});
|
||||
|
||||
$app.start();
|
||||
|
||||
|
2
backend/sub-store.min.js
vendored
2
backend/sub-store.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user