mirror of
https://github.com/empayre/fleet.git
synced 2024-11-07 01:15:22 +00:00
17 lines
370 B
TypeScript
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);
|
|
},
|
|
};
|