dev
ci / docker_image (push) Successful in 1m38s
ci / deploy (push) Successful in 18s

This commit is contained in:
2025-01-29 22:38:07 -06:00
parent be83b7570d
commit fa14fe0496
65 changed files with 3318 additions and 708 deletions
+8
View File
@@ -0,0 +1,8 @@
import { getPosting, getPostingFullData } from '$lib/db/index.server';
import { error, json } from '@sveltejs/kit';
export async function GET({ url }) {
const id = url.searchParams.get('id');
if (!id) return new Response(error(400, 'No id provided'));
return json(await getPostingFullData(parseInt(id)));
}