Is it possible to define multiple distinct URI's using Grails 2 web application filter?
For example, something like:
def filters = {
someFilterMethod(uri: '/auth/**|/*/user/modify') {
...
}
}
This is an open issue which is planned to be fixed in Grails 2.3 (according to the JIRA entry).
As a work-around you could extract the common code block to be used by multiple filter methods.
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