Add endpoint for getting user info

This commit is contained in:
Justin Edmund 2022-03-04 05:15:28 -08:00
parent 8d4fc87587
commit dff9653181

View file

@ -98,6 +98,11 @@ class Api {
}
})
}
userInfo(id: string) {
const resourceUrl = `${this.url}/users/info/${id}`
return axios.get(resourceUrl)
}
}
const api: Api = new Api({ url: process.env.NEXT_PUBLIC_SIERO_API_URL || 'https://localhost:3000/api/v1'})