mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-10-11 05:54:17 +00:00
* fix: add suppressHydrationWarning to resolve console errors * chore: add server-only library * WIP: Mock API for providers and start rendering data * chore: relocate utils folder to proper directory * chore: install shadcn for tables, adding sttings page * refactor: improve sidebar display behavior * chore: add fake data to the dataProviders * chore: remove the old table and rename ProviderInfo component * refactor: improve sidebar display behavior adding a custom hook * feat: the Providers table is rendering real data * chore: set the default valuef or isCollapse to false * chore: Added a helper function getProviderAttributes for cleaner access to provider attributes
11 lines
278 B
TypeScript
11 lines
278 B
TypeScript
import { NextResponse } from "next/server";
|
|
|
|
import data from "../../../dataProviders.json";
|
|
|
|
export async function GET() {
|
|
// Simulate fetching data with a delay
|
|
await new Promise((resolve) => setTimeout(resolve, 2000));
|
|
|
|
return NextResponse.json({ providers: data });
|
|
}
|