mirror of
https://git.mirrors.martin98.com/https://github.com/sub-store-org/Sub-Store.git
synced 2025-08-10 09:09:00 +08:00
revert: 同步接口支持 POST
This commit is contained in:
parent
ba251ced34
commit
0c6ec7f82a
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "sub-store",
|
||||
"version": "2.14.152",
|
||||
"version": "2.14.153",
|
||||
"description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and ShadowRocket.",
|
||||
"main": "src/main.js",
|
||||
"scripts": {
|
||||
|
@ -19,14 +19,8 @@ export default function register($app) {
|
||||
if (!$.read(ARTIFACTS_KEY)) $.write({}, ARTIFACTS_KEY);
|
||||
|
||||
// sync all artifacts
|
||||
$app.get('/api/sync/artifacts', syncAllArtifacts).post(
|
||||
'/api/sync/artifacts',
|
||||
syncAllArtifacts,
|
||||
);
|
||||
$app.get('/api/sync/artifact/:name', syncArtifact).post(
|
||||
'/api/sync/artifact/:name',
|
||||
syncArtifact,
|
||||
);
|
||||
$app.get('/api/sync/artifacts', syncAllArtifacts);
|
||||
$app.get('/api/sync/artifact/:name', syncArtifact);
|
||||
}
|
||||
|
||||
async function produceArtifact({
|
||||
|
Loading…
x
Reference in New Issue
Block a user