Add endpoint for getting user info
This commit is contained in:
parent
8d4fc87587
commit
dff9653181
1 changed files with 5 additions and 0 deletions
|
|
@ -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'})
|
const api: Api = new Api({ url: process.env.NEXT_PUBLIC_SIERO_API_URL || 'https://localhost:3000/api/v1'})
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue