Closes #103
This commit is contained in:
parent
f03f1c77bc
commit
5e8fd34dac
1 changed files with 1 additions and 1 deletions
|
@ -140,7 +140,7 @@ app.post('/upload-image', textParser, 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");
|
||||
} else {
|
||||
res.status(404);
|
||||
|
|
Loading…
Reference in a new issue