mirror of
https://github.com/hay-kot/homebox.git
synced 2024-11-17 14:18: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,
|
||
|
});
|
||
|
}
|
||
|
}
|