I have a Grails filter that I want to execute for every controller except 2 ( SimpleCaptchaController and ApiController ). I looked at Grails docs that describe how to determine which controllers / actions / views a filter should apply, and doesnโt exist. It seems like the obvious way to exclude a filter from 2 or more controllers.
I tried the following:
allExceptTwo(controller: 'simpleCaptcha', uri: '/api/**', invert: true)
But it seems to you that you are not allowed to use controller and api together.
source share