Use API v6

See: https://github.com/balena-io/open-balena/issues/80
Change-type: minor
This commit is contained in:
Akis Kesoglou 2020-06-15 13:57:32 +03:00
parent 3ef51240af
commit 1dccbaecd8
2 changed files with 2 additions and 2 deletions

View File

@ -153,7 +153,7 @@ export class APIBinder {
return;
}
const baseUrl = url.resolve(apiEndpoint, '/v5/');
const baseUrl = url.resolve(apiEndpoint, '/v6/');
const passthrough = _.cloneDeep(await request.getRequestOptions());
passthrough.headers =
passthrough.headers != null ? passthrough.headers : {};

View File

@ -51,7 +51,7 @@ api.post('/device/register', (req, res) =>
api.balenaBackend!.registerHandler(req, res, _.noop),
);
api.get('/v5/device', (req, res) =>
api.get('/v6/device', (req, res) =>
api.balenaBackend!.getDeviceHandler(req, res, _.noop),
);