This commit is contained in:
Kristian Polso 2018-06-20 12:42:19 +03:00
parent f03f1c77bc
commit 5e8fd34dac

View file

@ -140,7 +140,7 @@ app.post('/upload-image', textParser, function(req, res) {
app.get('/*', function(req, res) { app.get('/*', function(req, res) {
if(fs.existsSync(__dirname + "/.vuepress/dist" + req.path + ".html")) { if(fs.existsSync(__dirname + "/content/.vuepress/dist" + req.path + ".html")) {
res.redirect(req.path + ".html"); res.redirect(req.path + ".html");
} else { } else {
res.status(404); res.status(404);