Is it possible to define multiple distinct controller in a Grails 2 web application filter? For example, something like:
def filters = {
someFilterMethod(controller: 'controller1 controller2 ...', action: '*') {
...
}
}
Otherwise, is there a way to specify to not include the main index.gsp in the filter?
Use the pipe symbol:
def filters = {
someFilterMethod(controller: 'controller1|controller2|...', action: '*') {
...
}
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With