Create basic couple route
This commit is contained in:
@ -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 {
|
||||
|
Reference in New Issue
Block a user