diff options
| author | Rafi Zadanly <zadanlyr@gmail.com> | 2023-11-09 15:40:16 +0700 |
|---|---|---|
| committer | Rafi Zadanly <zadanlyr@gmail.com> | 2023-11-09 15:40:16 +0700 |
| commit | be0f537dc4fe384eef09436833c6407e6482c16d (patch) | |
| tree | 194b1ad3f34396cb8149075bbbd38b854aedf361 /src/app/api/company | |
| parent | 5d5401ae36e7e0c8eb38ccd943c1aa44a9573d35 (diff) | |
Initial commit
Diffstat (limited to 'src/app/api/company')
| -rw-r--r-- | src/app/api/company/route.tsx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/app/api/company/route.tsx b/src/app/api/company/route.tsx new file mode 100644 index 0000000..c970108 --- /dev/null +++ b/src/app/api/company/route.tsx @@ -0,0 +1,8 @@ +import { NextResponse } from "next/server"; +import { prisma } from "prisma/client"; + +export async function GET() { + const companies = await prisma.company.findMany() + + return NextResponse.json(companies) +}
\ No newline at end of file |
