mirror of
https://git.mirrors.martin98.com/https://github.com/sub-store-org/Sub-Store.git
synced 2026-04-02 05:43:18 +08:00
适配QX TF 390+特性
This commit is contained in:
@@ -94,6 +94,18 @@ $app.route("/api/storage")
|
||||
.get(exportData)
|
||||
.post(importData);
|
||||
|
||||
$app.get("/api/env", async (req, res) => {
|
||||
const {isNode, isQX, isLoon, isSurge} = ENV();
|
||||
let backend = "Node";
|
||||
if (isNode) backend = "Node";
|
||||
if (isQX) backend = "QX";
|
||||
if (isLoon) backend = "Loon";
|
||||
if (isSurge) backend = "Surge";
|
||||
res.json({
|
||||
backend
|
||||
});
|
||||
});
|
||||
|
||||
$app.all("/", async (req, res) => {
|
||||
res.send("Hello from Sub-Store! Made with ❤️ by Peng-YM.");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user