Svelte kit transition

This commit is contained in:
2021-04-24 18:24:17 +02:00
parent 59db328b4b
commit 58347b9ca6
29 changed files with 3451 additions and 7180 deletions

View File

@ -1,10 +1,10 @@
import { getFeed } from './_feed'
export async function get(req, res) {
export async function get() {
const feed = await getFeed()
res.writeHead(200, {
'Content-Type': 'application/json',
})
res.end(feed.json1())
return {
status: 200,
body: feed.json1(),
}
}

View File

@ -3,8 +3,11 @@ import { getFeed } from './_feed'
export async function get(req, res) {
const feed = await getFeed()
res.writeHead(200, {
'Content-Type': 'application/xml',
})
res.end(feed.rss2())
return {
status: 200,
headers: {
'Content-Type': 'application/xml',
},
body: feed.rss2(),
}
}