export default defineEventHandler(async (event) => {
let config = useRuntimeConfig();
let domain = config.public.apiURL;
let route = domain+'/api/user/phone/count';
const body = await readBody(event);
return await $fetch(route, {
headers: {
'Accept': 'application/json',
'Content-Type': 'application/json'
},
method: 'post',
body: {
phone: body.phone,
countryCode: body.countryCode
}
})
})
export default defineEventHandler(async (event) => {
let config = useRuntimeConfig();
let domain = config.public.apiURL;
let route = domain+'/api/user/phone/count';
const body = await readBody(event);
return await $fetch(route, {
headers: {
'Accept': 'application/json',
'Content-Type': 'application/json'
},
method: 'post',
body: {
phone: body.phone,
countryCode: body.countryCode
}
})
})