feat(*): Add example backend function

This commit is contained in:
Josh Creek
2024-04-30 19:05:38 +01:00
parent c6f0148af0
commit 662df5b3f1
@@ -0,0 +1,9 @@
import { json } from '@sveltejs/kit';
export const GET = async () => {
return json(await getSomeData());
};
async function getSomeData() {
// Do your async fetching here
}