mirror of
https://github.com/hay-kot/homebox.git
synced 2024-12-18 21:16:31 +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,
|
||
|
});
|
||
|
}
|
||
|
}
|