Skip to content

Commit 1d0159d

Browse files
committed
✨ feat (finance): Added GET route for fetching all finance accounts
1 parent dae792a commit 1d0159d

File tree

1 file changed

+12
-0
lines changed
  • apps/finance/src/app/api/accounts

1 file changed

+12
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import { db } from "../../../server/db";
2+
3+
export async function GET(request: Request) {
4+
const accounts = await db.financeAccount.findMany();
5+
6+
return Response.json(
7+
{ data: accounts },
8+
{
9+
status: 200,
10+
},
11+
);
12+
}

0 commit comments

Comments
 (0)