Code: Select all
app.http('doSomething', {
methods: ['GET', 'POST'],
authLevel: 'anonymous',
handler: async (request, context) => {
const data = await request.json(); // hangs here
return { body: JSON.stringify({test:"ok" }) };
}
});
< /code>
Ich verwende SWA CLI, um eine azure statische Web -App -Umgebung mit einem API -Backend zu emulieren, wie unten: < /p>
> swa start --api-location api