progress on friend route

This commit is contained in:
Mikayla Dobson
2022-11-26 15:32:10 -06:00
parent 03ec2bf38c
commit 9bd1704da9
10 changed files with 187 additions and 11 deletions

View File

@@ -67,11 +67,11 @@ export const attemptRegister = async (body: IUser) => {
}
// for user friendships
export const getFriendships = async (id: string | number) => {
export const getFriendships = async () => {
try {
const response = await axios({
method: "GET",
url: API + '/users/friends/' + id
url: API + '/friend'
})
return Promise.resolve(response.data);