upgrade to sveltekit 1
This commit is contained in:
7
src/routes/latest/+server.js
Normal file
7
src/routes/latest/+server.js
Normal file
@@ -0,0 +1,7 @@
|
||||
import { json } from '@sveltejs/kit';
|
||||
import { postData } from '../_posts/all.js';
|
||||
|
||||
|
||||
export async function GET() {
|
||||
return json(postData[0]);
|
||||
}
|
||||
Reference in New Issue
Block a user