From be0f537dc4fe384eef09436833c6407e6482c16d Mon Sep 17 00:00:00 2001
From: Rafi Zadanly <zadanlyr@gmail.com>
Date: Thu, 9 Nov 2023 15:40:16 +0700
Subject: Initial commit

---
 src/app/api/company/route.tsx | 8 ++++++++
 1 file changed, 8 insertions(+)
 create mode 100644 src/app/api/company/route.tsx

(limited to 'src/app/api/company/route.tsx')

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
-- 
cgit v1.2.3

