wayne
wayne copied to clipboard
Add redirects
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