Static GitHub Issues

[1730] How to add middleware from module ?

prev: Loading progress
next: Components with Axios

Hello,

How can I add a middleware from a module ? I see that I can use addServerMiddleware to add a server middleware but in my case I've to add a middleware accessible from both server and client.

Thanks, Gaƫl

<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c1552">#c1552</a>)</em></sub></div>