We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c0b7ec0 commit b7aa96cCopy full SHA for b7aa96c
apps/sim/app/api/guardrails/validate/route.ts
@@ -16,15 +16,7 @@ export async function POST(request: NextRequest) {
16
try {
17
const auth = await checkSessionOrInternalAuth(request, { requireWorkflowId: false })
18
if (!auth.success || !auth.userId) {
19
- return NextResponse.json({
20
- success: true,
21
- output: {
22
- passed: false,
23
- validationType: 'unknown',
24
- input: '',
25
- error: 'Unauthorized',
26
- },
27
- })
+ return NextResponse.json({ error: 'Unauthorized' }, { status: 401 })
28
}
29
30
const body = await request.json()
0 commit comments