refactor: Revise sync artifacts APIs

- /api/sync/artifacts: sync all artifacts
- /api/sync/artifact/:name: sync a specific artifact
This commit is contained in:
Peng-YM
2022-07-07 14:47:09 +08:00
parent a420c126c2
commit 240156daef
7 changed files with 120 additions and 82 deletions

View File

@@ -98,10 +98,6 @@ function getSubscription(req, res) {
if (sub) {
success(res, sub);
} else {
res.status(404).json({
status: 'failed',
message: `未找到订阅:${name}!`,
});
failed(
res,
new ResourceNotFoundError(