We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b3d1869 commit c08d398Copy full SHA for c08d398
apps/sim/app/api/settings/allowed-integrations/route.ts
@@ -1,13 +1,7 @@
1
import { NextResponse } from 'next/server'
2
-import { getSession } from '@/lib/auth'
3
import { getAllowedIntegrationsFromEnv } from '@/lib/core/config/feature-flags'
4
5
export async function GET() {
6
- const session = await getSession()
7
- if (!session?.user?.id) {
8
- return NextResponse.json({ error: 'Unauthorized' }, { status: 401 })
9
- }
10
-
11
return NextResponse.json({
12
allowedIntegrations: getAllowedIntegrationsFromEnv(),
13
})
0 commit comments