moleculerjs / moleculer-web

:earth_africa: Official API Gateway service for Moleculer framework
http://moleculer.services/docs/moleculer-web.html
MIT License
292 stars 119 forks source link

Using autoAliases, how to apply alias-level middlewares.? #300

Open swkim0572 opened 2 years ago

swkim0572 commented 2 years ago

I want to use autoAliases

following code, how to apply middleware to rest configuration

fee: {
  rest: {
        method: 'GET',
        fullPath: '/fee'
  },
}

I don't want action hook I need middleware function (req, res, next)

icebob commented 2 years ago

You can't add middlewares in services. The req, res is not serializable.