blog/src/pages/[lang]/atom.xml.ts
radishzz fc1cc050bc
refactor: separate rss and atom generation, optimize back button logic (#22)
* refactor: separate rss and atom generation, optimize back button logic, remove redundant whitespace in component styles

* fix:  add missing <published> tag in atom feed
2025-05-10 04:37:20 +01:00

13 lines
308 B
TypeScript

import type { APIContext } from 'astro'
import { moreLocales } from '@/config'
import { generateAtom } from '@/utils/feed'
export function getStaticPaths() {
return moreLocales.map(lang => ({
params: { lang },
}))
}
export async function GET(context: APIContext) {
return generateAtom(context)
}