Spaces:
Configuration error
Configuration error
File size: 347 Bytes
c86a32d | 1 2 3 4 5 6 7 8 9 10 | export async function validateStartup(idea, targetAudience, monetization) {
const res = await fetch('/api/validate', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ idea, targetAudience, monetization }),
});
if (!res.ok) throw new Error((await res.json()).error);
return res.json();
}
|