Spaces:
Sleeping
Sleeping
File size: 322 Bytes
5d94d12 | 1 2 3 4 5 6 7 8 9 10 | export async function analyzeSkillGap(jobPosting, userSkills) {
const res = await fetch('/api/analyze', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ jobPosting, userSkills }),
});
if (!res.ok) throw new Error((await res.json()).error);
return res.json();
}
|