mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-01 12:33:37 +08: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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user