Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
swkim0572 opened this issue Feb 14, 2022 · 1 comment
Open

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

swkim0572 opened this issue Feb 14, 2022 · 1 comment

Comments

@swkim0572
Copy link

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
Copy link
Member

icebob commented Feb 19, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants