Create basic couple route

This commit is contained in:
2023-08-16 12:17:04 +02:00
parent 0652fbadc8
commit 328eada9ec
6 changed files with 668 additions and 0 deletions

View File

@ -1,4 +1,5 @@
import { APIClient } from "./ApiClient";
import { Couple } from "./CoupleApi";
import { Member } from "./MemberApi";
interface FamilyAPI {
@ -62,6 +63,15 @@ export class Family implements FamilyAPI {
`/family/${this.family_id}/member/${member.id}` + (edit ? "/edit" : "")
);
}
/**
* Get application URL for couple page
*/
coupleURL(member: Couple, edit?: boolean): string {
return (
`/family/${this.family_id}/couple/${member.id}` + (edit ? "/edit" : "")
);
}
}
export enum JoinFamilyResult {