import { getSession } from '@/lib/session' import { getStoreCatalog } from '@/lib/store' /** Árbol de la tienda (categorías + ítems). Se carga tras elegir personaje. */ export async function GET() { const session = await getSession() if (!session.accountId || !session.username) { return Response.json({ success: false, error: 'notAuthenticated' }, { status: 401 }) } const catalog = await getStoreCatalog() return Response.json({ success: true, catalog }) }