mirror of
https://github.com/lospec/pixel-editor.git
synced 2023-08-10 21:12:51 +03:00
Merge pull request #11 from nkoder/redirect-app-server-side-to-landing-page
Show landing page instead of 404 on editor page reload
This commit is contained in:
commit
9c43fae68a
@ -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