mirror of
https://git.mirrors.martin98.com/https://github.com/sub-store-org/Sub-Store.git
synced 2025-08-10 00:09:01 +08:00
组合订阅现在可以在链接后添加?target=Clash等指定输出的目标格式了
This commit is contained in:
parent
4cb8ba1af9
commit
1fb453c106
@ -115,7 +115,7 @@ $app.get("/", async (req, res) => {
|
||||
if (ENV().isQX) {
|
||||
$app.options("/", async (req, res) => {
|
||||
res.status(200).end();
|
||||
})
|
||||
});
|
||||
};
|
||||
|
||||
$app.all("/", async (req, res) => {
|
||||
@ -530,7 +530,7 @@ async function deleteAllSubs(req, res) {
|
||||
async function downloadCollection(req, res) {
|
||||
const {name} = req.params;
|
||||
const collection = $.read(COLLECTIONS_KEY)[name];
|
||||
const platform = getPlatformFromHeaders(req.headers);
|
||||
const platform = req.query.target || getPlatformFromHeaders(req.headers);
|
||||
if (collection) {
|
||||
const subs = collection.subscriptions || [];
|
||||
const output = await Promise.all(
|
||||
|
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