title: axios request not going through to backend
body: <p>I'm struggling getting this axios call to work.  It's in a password reset feature, and it calls an axios request that sends through to the back end, but it's just coming up with an error instead of executing the code in the router route.</p>
  <p>I call the request in this block here.</p>
  <p>front end side:</p>
  <pre><code>  async componentDidMount() {
  const {
    match: {
      params: { token },
    },
  } = this.props;
  try {
    const response = await axios.get('http://localhost:5000/api/users/reset', {
      params: {
        resetPasswordToken: token,
      },
    });
    console.log(response)
    if (response.data.message === 'password reset link a-ok') {
      this.setState({
        username: response.data.username,
        updated: false,
        isLoading: false,
        error: false,
      });
    }
  } catch (error) {
    console.log(error.response.data);
    this.setState({
      updated: false,
      isLoading: false,
      error: true,
    });
  }
  }
  </code></pre>
  <p>It's getting the proper token and everything, but the http://localhost:5000/api/users/reset should be pointing to the /reset route in the code below, and it's never reached.</p>
  <pre><code>const express = require(&quot;express&quot;);
  const router = express.Router();
  const bcrypt = require(&quot;bcryptjs&quot;);
  const jwt = require(&quot;jsonwebtoken&quot;);
  const keys = require(&quot;../../config/keys&quot;);
  
  const validateRegisterInput = require(&quot;../../validation/register&quot;);
  const validateLoginInput = require(&quot;../../validation/login&quot;);
  const nodemailer = require('nodemailer');
  const crypto = require('crypto');
  
  require('dotenv').config();
  
  const User = require(&quot;../../models/User&quot;);
  
  router.route('/reset').get((req, res, next) =&gt; {
    User.find({
      where: {resetPasswordToken: req.query.resetPasswordToken,
      resetPasswordExpires: {
        $gt: Date.now(),
      },
    },
  }).then(user =&gt; {
    if(user == null) {
      console.log('password reset link is invalid or has expired');
      res.json('password reset link is invalid or has expired');
    }else{
      res.status(200).send({
        username: user.username,
        message: 'password reset link a-ok',
          });
        }
      });
    });
  
  module.exports = router;
  </code></pre>