Skip to content

Commit 1081c2c

Browse files
committed
feat: added /demo.yml route
1 parent 7167890 commit 1081c2c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

web/src/routes/demo.yml/+server.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ export async function GET() {
88
if (!response.ok) {
99
throw new Error('Failed to fetch schema');
1010
}
11-
const data = await response.json();
11+
const data = await response.text()
1212

13-
return new Response(JSON.stringify(data), {
13+
return new Response(data, {
1414
headers: {
15-
'Content-Type': 'application/json'
15+
'Content-Type': 'application/yaml'
1616
}
1717
});
1818
} catch (e) {

0 commit comments

Comments
 (0)