I am trying a rack middleware, to do authentication in a separate layer. The problem is, all request goes through this layer. I don't want the asset request like css, javascript to go through authentication middleware., I also don't want logout flow to go through this.,
In application.rb
config.middleware.use AuthClient::MyFilterClass
I am expecting something like
config.middleware.use AuthClient::MyFilterClass, :exclude => [:logout,'*/assets/*']
Is there any way to exclude custom path / actions from middleware ?