feat: Implement RSS Feed #12
|
@ -2,7 +2,9 @@ import { getPosts } from '$lib/posts';
|
||||||
import siteMetadata from '$content/metadata.json';
|
import siteMetadata from '$content/metadata.json';
|
||||||
import type { Post } from '$lib/types'
|
import type { Post } from '$lib/types'
|
||||||
|
|
||||||
export async function GET({ fetch }) {
|
export const prerender = true;
|
||||||
|
|
||||||
|
export async function GET() {
|
||||||
const posts: Post[] = await getPosts();
|
const posts: Post[] = await getPosts();
|
||||||
|
|
||||||
const headers = { 'Content-Type': 'application/xml' }
|
const headers = { 'Content-Type': 'application/xml' }
|
||||||
|
|
Loading…
Reference in New Issue