feat: numerous other pages

This commit is contained in:
Cory Dransfeldt 2024-11-16 22:03:37 -08:00
parent 159b60b3fb
commit ca34a11ad4
No known key found for this signature in database
54 changed files with 1074 additions and 101 deletions

View file

@ -0,0 +1,22 @@
import { generateJsonFeed } from '@utils/generateJsonFeed';
import { fetchGlobals } from '@utils/data/globals';
import { fetchBooks } from '@utils/data/books';
export async function GET() {
const globals = await fetchGlobals();
const books = await fetchBooks();
const feed = generateJsonFeed({
permalink: "/feeds/books.json",
title: "Books / Cory Dransfeldt",
globals,
data: books.feed,
});
return new Response(feed, {
status: 200,
headers: {
"Content-Type": "application/json",
},
});
}