mirror of
https://github.com/morten-olsen/morten-olsen.github.io.git
synced 2026-02-08 01:46:28 +01:00
21 lines
501 B
TypeScript
21 lines
501 B
TypeScript
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));
|
|
};
|