mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-10-15 18:14:44 +00:00
Features/public biography endpoint (#316)
This commit is contained in:
@@ -7,6 +7,7 @@ export interface PublicUserProfile {
|
||||
username: string;
|
||||
firstName: string;
|
||||
lastName: string;
|
||||
biography: string;
|
||||
createdAt: string;
|
||||
}
|
||||
|
||||
@@ -47,6 +48,7 @@ export const getPublicUserProfile = async (
|
||||
username: string;
|
||||
firstName: string;
|
||||
lastName: string;
|
||||
biography: string;
|
||||
createdAt: string;
|
||||
} = await res.json();
|
||||
|
||||
@@ -55,6 +57,7 @@ export const getPublicUserProfile = async (
|
||||
username: account.username,
|
||||
firstName: account.firstName,
|
||||
lastName: account.lastName,
|
||||
biography: account.biography,
|
||||
createdAt: account.createdAt,
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user