FeathersJS装载服务在根

我正在使用FeathersJS构build一个微服务体系结构,每个应用程序只需要一个服务,因此我将该服务挂载到每个应用程序的根目录( / )。 我试图做到这一点使用/作为一个path,当我生成服务(Mongoose)和删除app.use('/', express.static(app.get('public')));app.js行,它的工作原理,当我访问基本path(它列出所有条目),但是当我尝试/421jsadi23o1sj查找条目,它会返回404。

我认为它将ID作为服务的path并寻找它。

这是我的business.service.js文件:

 const createService = require('feathers-mongoose'); const createModel = require('../../models/businesses.model'); const hooks = require('./businesses.hooks'); module.exports = function (app) { const Model = createModel(app); const paginate = app.get('paginate'); const options = { name: 'businesses', Model, paginate }; // Initialize our service with any options it requires app.use('/', createService(options)); // Get our initialized service so that we can register hooks and filters const service = app.service('/'); service.hooks(hooks); app.publish(() => { // Here you can add event publishers to channels set up in `channels.js` // To publish only for a specific event use `app.publish(eventname, () => {})` // eg to publish all service events to all authenticated users use // return app.channel('authenticated'); }); }; 

有没有人遇到过这个问题? 关于如何解决的任何想法?