fleet/frontend/services/entities/macadmins.ts
2022-02-07 23:03:01 -06:00

17 lines
370 B
TypeScript

/* 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);
},
};