Skip to content

Commit c08d398

Browse files
committed
fix(access-control): remove auth from allowed-integrations endpoint to match models endpoint pattern
1 parent b3d1869 commit c08d398

File tree

1 file changed

+0
-6
lines changed
  • apps/sim/app/api/settings/allowed-integrations

1 file changed

+0
-6
lines changed

apps/sim/app/api/settings/allowed-integrations/route.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,7 @@
11
import { NextResponse } from 'next/server'
2-
import { getSession } from '@/lib/auth'
32
import { getAllowedIntegrationsFromEnv } from '@/lib/core/config/feature-flags'
43

54
export async function GET() {
6-
const session = await getSession()
7-
if (!session?.user?.id) {
8-
return NextResponse.json({ error: 'Unauthorized' }, { status: 401 })
9-
}
10-
115
return NextResponse.json({
126
allowedIntegrations: getAllowedIntegrationsFromEnv(),
137
})

0 commit comments

Comments
 (0)