mirror of
https://git.mirrors.martin98.com/https://github.com/sub-store-org/Sub-Store.git
synced 2026-03-20 11:22:37 +08:00
refactor: Revise sync artifacts APIs
- /api/sync/artifacts: sync all artifacts - /api/sync/artifact/:name: sync a specific artifact
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { syncArtifact, produceArtifact } from '@/restful/artifacts';
|
||||
import { syncToGist, produceArtifact } from '@/restful/artifacts';
|
||||
import { version } from '../../package.json';
|
||||
import { ARTIFACTS_KEY } from '@/constants';
|
||||
import $ from '@/core/app';
|
||||
@@ -33,7 +33,7 @@ console.log(
|
||||
}),
|
||||
);
|
||||
|
||||
const resp = await syncArtifact(files);
|
||||
const resp = await syncToGist(files);
|
||||
const body = JSON.parse(resp.body);
|
||||
|
||||
for (const artifact of allArtifacts) {
|
||||
|
||||
Reference in New Issue
Block a user