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
添加跳转
This commit is contained in:
parent
a9a68be9f6
commit
c619e4e6eb
@ -106,9 +106,14 @@ $app.get("/api/env", async (req, res) => {
|
||||
});
|
||||
});
|
||||
|
||||
$app.all("/", async (req, res) => {
|
||||
res.send("Hello from Sub-Store! Made with ❤️ by Peng-YM.");
|
||||
});
|
||||
$app.route("/")
|
||||
.get(async (req, res) => {
|
||||
// 302 redirect
|
||||
res.set("location", "https://sub-store.vercel.app/").status(302).end();
|
||||
})
|
||||
.options(async (req, res) => {
|
||||
res.status(200).end();
|
||||
});
|
||||
|
||||
$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