Departments
List all departments
const depts = await ft.departments.list();
// use depts.json() to access data
- Returns a
Responseobject that resolves to anArrayofFreshteam.models.Departmentobjects
Get department by ID
const dept = await ft.departments.get(id);
// use dept.json() to access data
- Returns a
Responseobject that resolves to aFreshteam.models.Departmentobject