Skip to content

Commit

Permalink
added index.ts and points.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
RyamL1221 committed Dec 9, 2024
1 parent 276577f commit 8d2ad3c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/lib/api/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export * from './auth';
export * from './user';
export * from './team';
export * from './event';
export * from './buy-ins';
export * from './points';
8 changes: 8 additions & 0 deletions app/lib/api/points.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
'use server';

import { ENDPOINTS } from './endpoints';

export async function GetPoints() {
const resp = await fetch(ENDPOINTS.points, { method: 'POST' });
return resp.json();
}

0 comments on commit 8d2ad3c

Please sign in to comment.