community: resolve user provided url
This commit is contained in:
@@ -9,10 +9,10 @@ async function getAppVersion(req, res, next) {
|
||||
assert.strictEqual(typeof req.query.url, 'string');
|
||||
assert.strictEqual(typeof req.query.version, 'string');
|
||||
|
||||
const [error, result] = await safe(community.getAppVersion(req.query.url, req.query.version));
|
||||
const [error, result] = await safe(community.resolveVersionsUrl(req.query.url, req.query.version));
|
||||
if (error) return next(BoxError.toHttpError(error));
|
||||
|
||||
next(new HttpSuccess(200, result)); // { manifest, publishState, creationDate, ts }
|
||||
next(new HttpSuccess(200, result)); // { manifest, publishState, creationDate, ts, resolvedUrl, versionsUrl }
|
||||
}
|
||||
|
||||
export default {
|
||||
|
||||
Reference in New Issue
Block a user