-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #61 from Rajdip019/dashboard-setup
Dashboard setup
- Loading branch information
Showing
12 changed files
with
463 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
export async function GET(req: Request) { | ||
const endPoint: (string | undefined) = `${process.env.NEXT_PUBLIC_API_BASE_URL}/api/session/get-all`; | ||
|
||
if (endPoint) { | ||
try { | ||
const res = await fetch(endPoint, { | ||
method: 'GET', | ||
headers: { | ||
'Content-Type': 'application/json', // Set the appropriate content type for your request | ||
'x-api-key': process.env.X_API_KEY!, | ||
}, | ||
cache: 'no-cache', | ||
}); | ||
const data = await res.json(); | ||
return Response.json({ data }) | ||
} catch (error) { | ||
console.error('Error during request:', error); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
"use client" | ||
|
||
import SessionTableAll from '@/components/session/SessionTableAll' | ||
import React from 'react' | ||
|
||
const Sessions = () => { | ||
return ( | ||
<div> | ||
<SessionTableAll /> | ||
</div> | ||
) | ||
} | ||
|
||
export default Sessions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.