refactor: moves util functions into their respective library file

This commit is contained in:
Lewis Wynne 2026-01-31 22:12:33 +00:00
parent 98ac61a6c8
commit 38b5413a37
11 changed files with 23 additions and 27 deletions

View file

@ -1,8 +1,8 @@
import rss from '@astrojs/rss';
import { getCollection } from 'astro:content';
import type { APIContext } from 'astro';
import { getSlug } from '../lib/posts';
import { getTxtFiles } from '../lib/txt';
import { getSlug } from '../utils';
export async function GET(context: APIContext) {
const posts = await getCollection('md', ({ data }) => data.draft !== true);