mirror of
https://github.com/empayre/fleet.git
synced 2024-11-07 09:18:59 +00:00
7a68e3de65
- Support both /api/v1/fleet and /api/v1/kolide routes in server. - Add logging for use of deprecated routes. - Rename routes in frontend JS. - Rename routes and add notes in documentation.
15 lines
349 B
JavaScript
15 lines
349 B
JavaScript
import createRequestMock from 'test/mocks/create_request_mock';
|
|
|
|
export default {
|
|
getCounts: {
|
|
valid: (bearerToken) => {
|
|
return createRequestMock({
|
|
bearerToken,
|
|
endpoint: '/api/v1/fleet/host_summary',
|
|
method: 'get',
|
|
response: { online_count: 1, offline_count: 23, mia_count: 2 },
|
|
});
|
|
},
|
|
},
|
|
};
|