Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exclude default UrlMapping #8

Open
codeconsole opened this issue Oct 18, 2024 · 0 comments
Open

Exclude default UrlMapping #8

codeconsole opened this issue Oct 18, 2024 · 0 comments

Comments

@codeconsole
Copy link

codeconsole commented Oct 18, 2024

Automatic resolution of this controller could lead to undesired behavior:

class ConsoleUrlMappings {
static mappings = {
"/console/$action?"(controller: 'console')
}
}

The default UrlMapping of a Grails app already provides access to the ConsoleController
https://github.com/codeconsole/website/blob/master/grails-app/controllers/website/UrlMappings.groovy#L5-L9

        "/$controller/$action?/$id?(.$format)?"{
            constraints {
                // apply constraints here
            }
        }

Perhaps it is better to not provide any UrlMappings or at least provide a definitive method of excluding the existing one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant