forked from mirrors/homebox
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,
|
||
|
});
|
||
|
}
|
||
|
}
|