mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-17 07:40:22 +00:00
fix(nodeserver): docs rewriting
There can be url /api which does not end with / and we want to rewrite this url as well...
This commit is contained in:
parent
02332107e5
commit
8e32f3fd35
1 changed files with 1 additions and 1 deletions
|
|
@ -93,7 +93,7 @@ StaticServlet.prototype.handleRequest = function(req, res) {
|
|||
return self.sendForbidden_(req, res, path);
|
||||
|
||||
// docs rewriting
|
||||
var REWRITE = /\/(guide|api|cookbook|misc|tutorial)\/.*$/,
|
||||
var REWRITE = /\/(guide|api|cookbook|misc|tutorial).*$/,
|
||||
IGNORED = /(\.(css|js|png|jpg)$|partials\/.*\.html$)/,
|
||||
match;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue