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