Departments
List all departments
const depts = await ft.departments.list();
// use depts.json() to access data
- Returns a
Response
object that resolves to anArray
ofFreshteam.models.Department
objects
Get department by ID
const dept = await ft.departments.get(id);
// use dept.json() to access data
- Returns a
Response
object that resolves to aFreshteam.models.Department
object