mirror of
https://git.mirrors.martin98.com/https://github.com/sub-store-org/Sub-Store.git
synced 2026-04-01 18:03:19 +08:00
fix: 同步接口支持 POST
This commit is contained in:
@@ -19,8 +19,14 @@ export default function register($app) {
|
||||
if (!$.read(ARTIFACTS_KEY)) $.write({}, ARTIFACTS_KEY);
|
||||
|
||||
// sync all artifacts
|
||||
$app.get('/api/sync/artifacts', syncAllArtifacts);
|
||||
$app.get('/api/sync/artifact/:name', syncArtifact);
|
||||
$app.get('/api/sync/artifacts', syncAllArtifacts).post(
|
||||
'/api/sync/artifacts',
|
||||
syncAllArtifacts,
|
||||
);
|
||||
$app.get('/api/sync/artifact/:name', syncArtifact).post(
|
||||
'/api/sync/artifact/:name',
|
||||
syncArtifact,
|
||||
);
|
||||
}
|
||||
|
||||
async function produceArtifact({
|
||||
|
||||
Reference in New Issue
Block a user