Compare commits
2 commits
b731228fb8
...
3fc8933b1e
Author | SHA1 | Date | |
---|---|---|---|
3fc8933b1e | |||
0d6786ffe9 |
2 changed files with 4 additions and 4 deletions
|
@ -38,11 +38,11 @@ export const useApi = () => {
|
|||
}
|
||||
|
||||
async function addFriend(username: string): Promise<void> {
|
||||
await fetchWithApi('/me/friends', { method: "POST", body: { username } });
|
||||
return await fetchWithApi('/me/friends', { method: "POST", body: { username } });
|
||||
}
|
||||
|
||||
async function removeFriend(userId: string): Promise<void> {
|
||||
await fetchWithApi(`/me/friends/${userId}`, { method: "DELETE" });
|
||||
return await fetchWithApi(`/me/friends/${userId}`, { method: "DELETE" });
|
||||
}
|
||||
|
||||
async function fetchMessages(channelId: string, options?: { amount?: number, offset?: number }): Promise<MessageResponse[] | undefined> {
|
||||
|
|
|
@ -17,13 +17,13 @@
|
|||
:class="{ 'sidebar-focus': selectedPage === page.displayName }">
|
||||
{{ page.displayName }}
|
||||
</li>
|
||||
<verticalSpacer />
|
||||
<VerticalSpacer />
|
||||
</div>
|
||||
|
||||
<p>
|
||||
<Button text="Log Out" :callback=logout variant="scary"></Button>
|
||||
</p>
|
||||
<verticalSpacer />
|
||||
<VerticalSpacer />
|
||||
|
||||
<p id="links-and-socials">
|
||||
<NuxtLink href="https://git.gorb.app/gorb/frontend" title="Source"><Icon name="lucide:git-branch-plus" /></NuxtLink>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue