No parameters required for these endpoints.
The response will be a JSON object containing the requested data.
const getSong=async()=>{
const res=await fetch("https://free-music-api2.vercel.app/getSongs",{
method:"get",
headers:{
"Content-Type":"application/json"
}
})
const response=await res.json();
if(response){
//set response in your array
}
}