mirror of
https://github.com/fleetdm/fleet
synced 2026-05-22 16:39:01 +00:00
* removed global api routes; using 'latest' instead of v1 for api routes * lint fixes * updated docs and tests * lint fixes * route fix * fixed routes breaking packs queries * revert test change
25 lines
557 B
JavaScript
25 lines
557 B
JavaScript
import createRequestMock from "test/mocks/create_request_mock";
|
|
|
|
export default {
|
|
loadAll: {
|
|
valid: (bearerToken) => {
|
|
return createRequestMock({
|
|
bearerToken,
|
|
endpoint: "/api/latest/fleet/config",
|
|
method: "get",
|
|
response: { config: { name: "Fleet" } },
|
|
});
|
|
},
|
|
},
|
|
update: {
|
|
valid: (bearerToken, params) => {
|
|
return createRequestMock({
|
|
bearerToken,
|
|
endpoint: "/api/latest/fleet/config",
|
|
method: "patch",
|
|
params,
|
|
response: {},
|
|
});
|
|
},
|
|
},
|
|
};
|