Update api.tsx
This commit is contained in:
parent
30d5e68fe5
commit
e06e2c7f23
1 changed files with 1 additions and 1 deletions
|
|
@ -58,7 +58,7 @@ class Api {
|
|||
return axios.get(url)
|
||||
}
|
||||
|
||||
check(resource: 'username'|'email', value: string) {
|
||||
check(resource: string, value: string) {
|
||||
const resourceUrl = `${this.url}/check/${resource}`
|
||||
return axios.post(resourceUrl, {
|
||||
[resource]: value
|
||||
|
|
|
|||
Loading…
Reference in a new issue