feat(routes): add discover route

This commit is contained in:
ItzCrazyKns
2025-03-19 13:37:54 +05:30
parent 3bf2337697
commit d1e9361665
2 changed files with 62 additions and 1 deletions

View File

@ -19,7 +19,7 @@ const Page = () => {
useEffect(() => {
const fetchData = async () => {
try {
const res = await fetch(`${process.env.NEXT_PUBLIC_API_URL}/discover`, {
const res = await fetch(`/api/discover`, {
method: 'GET',
headers: {
'Content-Type': 'application/json',