fleet/frontend/services/entities/macadmins.ts

17 lines
370 B
TypeScript
Raw Normal View History

2022-02-08 05:03:01 +00:00
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
import sendRequest from "services";
import endpoints from "fleet/endpoints";
export default {
loadAll: (teamId?: number) => {
const { MACADMINS } = endpoints;
let path = MACADMINS;
if (teamId) {
path += `?team_id=${teamId}`;
}
return sendRequest("GET", path);
},
};