mirror of
https://github.com/lospec/pixel-editor.git
synced 2023-08-10 21:12:51 +03:00
Show landing page instead of 404 on editor page reload
This commit is contained in:
parent
855c125f8a
commit
ac32f42318
@ -23,6 +23,11 @@ app.get('/', (req, res) => {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Better to show landing page rather than 404 on editor page reload
|
||||||
|
app.get('/pixel-editor/app', (req, res) => {
|
||||||
|
res.redirect('/');
|
||||||
|
})
|
||||||
|
|
||||||
//ROUTE - other files
|
//ROUTE - other files
|
||||||
app.use(express.static(path.join(__dirname, BUILDDIR)));
|
app.use(express.static(path.join(__dirname, BUILDDIR)));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user