mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2024-12-19 05:37:53 +00:00
Use API v6
See: https://github.com/balena-io/open-balena/issues/80 Change-type: minor
This commit is contained in:
parent
3ef51240af
commit
1dccbaecd8
@ -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 : {};
|
||||
|
@ -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),
|
||||
);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user