title: Redirect url in mockserver
body: <p>I have a route in mock-server like this:
  <a href="http://localhost:1337/mock-store/admin/store-parameters/1" rel="nofollow noreferrer">http://localhost:1337/mock-store/admin/store-parameters/1</a>
  which returns back a json:</p>
  
  <pre><code>{
    "id": 1,
    "code": "123",
    "redirect": true
  }
  </code></pre>
  
  <p>I want that if the json includes "redirect = true", the route will redirect me to a different link.</p>
  
  <p>I'm trying to use middleware.js inside my yotpo-mock server, for example:</p>
  
  <pre><code>module.exports = (req, res, next) =&gt; {
    req.header('X-Hello', 'Goodbye');
    res.header('X-Hello', 'World');
    next("www.google.com)
  }
  </code></pre>
  
  <p>but the json response simply changed to "google.com".
  I want my route to be redirected to google.com.</p>
  
  <p>HELP?</p>