Skip to content

Commit

Permalink
Change API endpoint for testing purposes & GN
Browse files Browse the repository at this point in the history
  • Loading branch information
saiyamdubey committed Feb 14, 2024
1 parent 2644e6a commit 8d9d286
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions app/instagram/video/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,14 @@ function Searchbar({}: Props) {
}

const response = await fetch(
`/api/download?url=${encodeURIComponent(url)}`
// `/api/download?url=${encodeURIComponent(url)}`
`/api/test?url=${encodeURIComponent("https://www.instagram.com/p/C3PvQIrCwzz/?__a=1&__d=dis")}`
);
console.log("hmm ::", response);
// console.log("hmm ::", await response.json());
const data = await response.json();
console.log(data);
console.log("mm ::", data);
const response1 = await fetch(
`/api/test?url=https://jsonplaceholder.typicode.com/posts`
`/api/test?url=https://jsonplaceholder.typicode.com/posts/1`
);
const posts = await response1.json();
console.log("hi ::", posts);
Expand Down

0 comments on commit 8d9d286

Please sign in to comment.