Fix for /index.php which might be in some clients' permanent redirects.

This commit is contained in:
Lena Schimmel 2019-08-12 18:42:28 +02:00
parent 10eae611f2
commit e3e1ffcb17

View file

@ -136,6 +136,10 @@ async function initSvg(svgId) {
return new GradientSvg(dom.window.document.getElementById(svgId), dom.window.document, dom);
}
app.get('/index.php', async function (req, res) {
res.redirect("/");
});
app.get('/img/shadow/:layout.svg', async function (req, res) {
var gradients = await gradientsFuture[req.params.layout];
gradients.setShadowMode("only");