Skip to content

Commit

Permalink
/docs/index.html now redirects to /documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
gastaldi committed Dec 18, 2015
1 parent 02e4af7 commit 4145c19
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,11 @@ app.get('/sh', function(req,res) {
});
});

app.get('/docs/index.html', function (req,res) {
res.header('Location', '/documentation');
res.send(302);
});

app.get(/\/?.*(\/1.x\/?)|([.](js|css|png|ico|html|jpg|ttf|wof))/, restify.serveStatic({default: 'index.html', directory: './app/', cache: true}));

// Everything except the already defined routes. IMPORTANT: this should be the last route
Expand Down

0 comments on commit 4145c19

Please sign in to comment.