feat(routes): add discover route
This commit is contained in:
parent
3bf2337697
commit
d1e9361665
2 changed files with 62 additions and 1 deletions
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue