Files
claude/lib/tests/fixtures/guardrails-good/src/pages/api/notes.ts
T
bchanot 558c49e1a1 feat(guardrails): secure-by-default rule and /guardrails scanner
Always-on rules/secure-by-default.md: hosting, a11y, Supabase RLS,
SMS/email consent, cloud functions, API hygiene incl. password storage.
Stdlib scanner (FAIL/WARN/MANUAL) + skill, 89-check suite, auditor
gate wiring, profiles, routing row (plus Explore rows confirmed
through the router dialog).
2026-10-18 18:10:20 +02:00

8 lines
235 B
TypeScript

import { getUser } from "../../lib/auth";
export async function GET(request: Request) {
const user = await getUser(request);
if (!user) return new Response("unauthorized", { status: 401 });
return Response.json({ ok: true });
}