We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 26269f4 + 7171197 commit bf92b6cCopy full SHA for bf92b6c
1 file changed
lib/controller/MockController.js
@@ -89,7 +89,7 @@ MockController.prototype = extend(MockController.prototype, {
89
* @private
90
*/
91
_acceptMiddleware: function (serverOptions, responseOptions) {
92
- var endPointId = responseOptions.dir.replace(serverOptions.dirName, '').replace(/\/$/, '');
+ var endPointId = responseOptions.dir.replace(serverOptions.dirName, '').replace(/\/$/, '').replace('\\', '/');
93
var middleware = serverOptions.middleware;
94
95
if (!endPointId || !middleware || typeof middleware[endPointId] !== 'function') {
0 commit comments