diff --git a/utils/api.tsx b/utils/api.tsx index 3781e275..a86a76d6 100644 --- a/utils/api.tsx +++ b/utils/api.tsx @@ -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'})