|
import * as React from 'react';
|
|
import EP from './endpoints';
|
|
|
|
export default function ValidateMobile(mobile) {
|
|
return fetch(EP.validate_mobile + "/" + mobile)
|
|
.then((response) => response.json())
|
|
.then((json) => {
|
|
return json
|
|
})
|
|
.catch((error) => {
|
|
return error
|
|
});
|
|
} |