wayne icon indicating copy to clipboard operation
wayne copied to clipboard

Add redirects

Open jcubic opened this issue 3 years ago • 0 comments

In orinal article code there is:

resolve(Response.redirect(url + '/', 301));

The library should be able to do that.

Possible API:

app.get('/something', (req, res) => {
  res.redirect(`${req.url}/`, 301);
});

TODO:

  • [ ] Test infinite redirects
  • [ ] Test redirects for different domain/scope

jcubic avatar Jul 08 '22 11:07 jcubic