mirror of
https://github.com/hay-kot/homebox.git
synced 2024-11-25 01:55:43 +00:00
12 lines
356 B
TypeScript
12 lines
356 B
TypeScript
|
import { BaseAPI, route } from "../base";
|
||
|
import { GroupInvitation, GroupInvitationCreate } from "../types/data-contracts";
|
||
|
|
||
|
export class GroupApi extends BaseAPI {
|
||
|
createInvitation(data: GroupInvitationCreate) {
|
||
|
return this.http.post<GroupInvitationCreate, GroupInvitation>({
|
||
|
url: route("/groups/invitations"),
|
||
|
body: data,
|
||
|
});
|
||
|
}
|
||
|
}
|