Build family information provider
This commit is contained in:
@ -111,6 +111,18 @@ export class FamilyApi {
|
||||
).data.map((f: FamilyAPI) => new Family(f));
|
||||
}
|
||||
|
||||
/**
|
||||
* Get information about a single family
|
||||
*/
|
||||
static async GetSingle(id: number): Promise<Family> {
|
||||
const res = await APIClient.exec({
|
||||
method: "GET",
|
||||
uri: `/family/${id}`,
|
||||
});
|
||||
|
||||
return new Family(res.data);
|
||||
}
|
||||
|
||||
/**
|
||||
* Attempt to leave a family
|
||||
*/
|
||||
|
Reference in New Issue
Block a user