Angularjs 发电机角度满栈路由问题

Angularjs 发电机角度满栈路由问题,angularjs,express,generator,yeoman,Angularjs,Express,Generator,Yeoman,我的发电机有问题。我不知道是什么在为基URL()提供index.html文件。我能找到的唯一可能的路线是贴在下面。如果我添加一个console.log()或使用node inspector设置断点,那么它似乎不是被调用的那个。我甚至注释掉了res.sendFile行,仍然提供index.html app.route('/*') .get(function(req, res) { res.sendFile(path.resolve(app.get('appPath') +

我的发电机有问题。我不知道是什么在为基URL()提供index.html文件。我能找到的唯一可能的路线是贴在下面。如果我添加一个console.log()或使用node inspector设置断点,那么它似乎不是被调用的那个。我甚至注释掉了res.sendFile行,仍然提供index.html

  app.route('/*')
    .get(function(req, res) {
      res.sendFile(path.resolve(app.get('appPath') + '/index.html'));
    });

我想在index.html文件中添加一些中间件。

在下一个app.use行中。

我找到了它。这是express.js配置文件中的以下行:app.use(express.static(path.join(config.root,'client'));