We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7167890 commit 1081c2cCopy full SHA for 1081c2c
web/src/routes/demo.yml/+server.ts
@@ -8,11 +8,11 @@ export async function GET() {
8
if (!response.ok) {
9
throw new Error('Failed to fetch schema');
10
}
11
- const data = await response.json();
+ const data = await response.text()
12
13
- return new Response(JSON.stringify(data), {
+ return new Response(data, {
14
headers: {
15
- 'Content-Type': 'application/json'
+ 'Content-Type': 'application/yaml'
16
17
});
18
} catch (e) {
0 commit comments