-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Components; Add OpenAI api for testing api endpoints in produc…
…tion
- Loading branch information
Shivam Naik
committed
Apr 13, 2024
1 parent
37298c3
commit ed1023c
Showing
7 changed files
with
25 additions
and
52 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
This file was deleted.
Oops, something went wrong.
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,7 @@ | ||
// Next.js API route support: https://nextjs.org/docs/api-routes/introduction | ||
|
||
const getOpenAIKey = async(req, res) => { | ||
res.status(200).json({ api_key: process.env.OPENAI_API_KEY}) | ||
} | ||
|
||
export default getOpenAIKey; |
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,12 @@ | ||
import Page from "../components/Page"; | ||
|
||
const Projects = () => { | ||
|
||
return( | ||
<Page> | ||
<h1>Projects</h1> | ||
</Page> | ||
); | ||
} | ||
|
||
export default Projects; |
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 |
---|---|---|
@@ -1,12 +1,11 @@ | ||
import Page from "../components/Page"; | ||
|
||
const Academics = () => { | ||
const WorkExperience = () => { | ||
|
||
return( | ||
<Page> | ||
<h1>Work Experience</h1> | ||
</Page> | ||
); | ||
} | ||
|
||
export default Academics; | ||
export default WorkExperience; |