title: Request to API based on URL/
body: <p>I'm attempting to make a request to an API to get a users' avatar. This is the code I have, however it's returning a &quot;player is not defined&quot; error.</p>
  <pre class="lang-js prettyprint-override"><code>app.get(`/api/avatar/${player}`, function(req, res) {
    res.redirect(`http://cdn.simulping.com/v1/users/${player}/avatar`);
  });
  </code></pre>
  <p>Essentially, if the URL is <code>/api/avatar/3925</code> it would send them to <code>http://cdn.simulping.com/v1/users/3925/avatar</code>.</p>