Support applink update

This commit is contained in:
Johannes Zellner
2022-07-07 16:41:25 +02:00
parent f43fd21929
commit ac00225a75
2 changed files with 24 additions and 13 deletions

View File

@@ -51,7 +51,7 @@ async function update(req, res, next) {
if (!req.body.upstreamUri || typeof req.body.upstreamUri !== 'string') return next(new HttpError(400, 'upstreamUri must be a non-empty string'));
const [error] = await safe(applinks.get(req.params.id, req.body));
const [error] = await safe(applinks.update(req.params.id, req.body));
if (error) return next(BoxError.toHttpError(error));
next(new HttpSuccess(202, {}));