Skip to content

Commit 6a69aa2

Browse files
authored
Merge pull request #126337 from szakosdeb/patch-1
Fixed the message function's reply to correspond to what the front-en…
2 parents 66fe172 + 4739b49 commit 6a69aa2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

articles/static-web-apps/add-api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ You create an Azure Functions project for your static web app's API. By default,
101101
methods: ['GET', 'POST'],
102102
authLevel: 'anonymous',
103103
handler: async (request, context) => {
104-
return { body: `Hello, from the API!` };
104+
return { body: JSON.stringify({ "text": `Hello, from the API!` }) };
105105
}
106106
});
107107
```

0 commit comments

Comments
 (0)