Update api.tsx

This commit is contained in:
Justin Edmund 2022-02-02 20:44:06 -08:00
parent 30d5e68fe5
commit e06e2c7f23

View file

@ -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