Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mihir224 committed Sep 29, 2023
1 parent 4556efa commit 8aaf779
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/components/Search.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function Search(){
(async ()=>{
try{
const url=process.env.NODE_ENV==="production"?"https://youtube-clone-api224.onrender.com/api":"";
const res=await axios.get(`${url}/api/videos/search${query}`,{withCredentials: true});
const res=await axios.get(`${url}/videos/search${query}`,{withCredentials: true});
setVideos(res.data);
}
catch(err){
Expand Down

0 comments on commit 8aaf779

Please sign in to comment.