This commit is contained in:
Morten Olsen
2023-10-30 10:24:29 +01:00
commit 5f79c8da43
65 changed files with 6312 additions and 0 deletions

20
src/pages/resume.json.ts Normal file
View File

@@ -0,0 +1,20 @@
import { getCollection } from 'astro:content';
import { basics, skills, languages } from '../data/profile';
export async function GET(context: any) {
const work = await getCollection('work');
const references = await getCollection('references');
const resume = {
...basics,
skills,
languages,
work: work.map((item) => ({
...item.data,
})),
references: references.map((item) => ({
...item.data,
})),
}
return new Response(JSON.stringify(resume));
};