import { a as getUserFromRequest } from '../../../chunks/user-auth_D4NBmYxs.mjs';
export { renderers } from '../../../renderers.mjs';

const GET = async ({ request }) => {
  const user = getUserFromRequest(request);
  if (!user) {
    return new Response(JSON.stringify({ user: null }), {
      headers: { "Content-Type": "application/json" }
    });
  }
  return new Response(JSON.stringify({ user: { id: user.id, email: user.email } }), {
    headers: { "Content-Type": "application/json" }
  });
};

const _page = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
  __proto__: null,
  GET
}, Symbol.toStringTag, { value: 'Module' }));

const page = () => _page;

export { page };
