组合订阅现在可以在链接后添加?target=Clash等指定输出的目标格式了

This commit is contained in:
Peng-YM 2020-10-10 16:42:33 +08:00
parent 4cb8ba1af9
commit 1fb453c106
2 changed files with 3 additions and 3 deletions

View File

@ -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(

File diff suppressed because one or more lines are too long