Initial commit
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
import type { APIRoute } from 'astro';
|
||||
|
||||
export const prerender = false;
|
||||
|
||||
export const GET: APIRoute = ({ locals }) => {
|
||||
return new Response(JSON.stringify({ user: locals.user }), {
|
||||
status: 200,
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user