Skip to content

Commit

Permalink
added api
Browse files Browse the repository at this point in the history
  • Loading branch information
NarayanBavisetti committed Mar 30, 2022
1 parent 178a312 commit 18999a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/src/components/Movie.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default function Movie() {
}, [id]);
const getMovie = async () => {
console.log(id);
const url = `https://www.omdbapi.com/?i=${id}&apikey=${process.env.REACT_APP_API_KEY}`;
const url = `https://www.omdbapi.com/?i=${id}&apikey=8717385c`;
const response = await fetch(url);
const responseJson = await response.json();
if (responseJson) {
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/MovieList.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default function MovieList() {

const history = useHistory();
const getMovie = async (search) => {
const url = `https://www.omdbapi.com/?s=${search}&apikey=${process.env.REACT_APP_API_KEY}`;
const url = `https://www.omdbapi.com/?s=${search}&apikey=8717385c`;
const response = await fetch(url);
const responseJson = await response.json();

Expand Down

0 comments on commit 18999a0

Please sign in to comment.