title: Not getting any data from API
body: <pre><code>import axios from 'axios';
  
  const url = 'https://covid19.mathdro.id/api';
  
  export const fetchData = async () =&gt; {
    try {
      const { data: { confirmed, recovered, deaths, lastUpdate} } = await axios.get(url);
      return {confirmed, recovered, deaths, lastUpdate};
  } catch (error) {
  }
  }
  export const fetchDailyData = async()=&gt; {
  try{
      const data = await axios.get('${url}/daily');
      console.log(&quot;DATA&quot;,data);
      const modifiedData = data.map((dailyData) =&gt; ({
          confirmed: dailyData.confirmed.total,
          deaths: dailyData.deaths.total,
          date: dailyData.reportDate,
      }));
      return modifiedData;
  } catch(error){
      console.log(&quot;DATA NOT FOUND&quot;);
      var r = []
      return r
  }
  }
  </code></pre>
  <p>Here I'mt trying to get data from this API: <a href="https://covid19.mathdro.id/api/daily" rel="nofollow noreferrer">https://covid19.mathdro.id/api/daily</a></p>
  <p>But Whenever I'm trying to call fetchDailyData , I'm only getting &quot;DATA NOT FOUND&quot; on the console</p>