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

allow supplying a custom path for an action #1

Open
zyro23 opened this issue Jan 15, 2017 · 2 comments
Open

allow supplying a custom path for an action #1

zyro23 opened this issue Jan 15, 2017 · 2 comments
Labels

Comments

@zyro23
Copy link

zyro23 commented Jan 15, 2017

it would be good to have a way to configure a custom path for an action.

if you have multiple url mappings poiting to the same action, currently only the default one created by linkGenerator is used.

something like an @ApiPath annotation would be cool.

@dilipkrish
Copy link
Member

Hmmm interesting. Since we don't go from url mapping -> controller is why we probably don't account for it. Curious how @RequestMapping plays with grails?

@zyro23
Copy link
Author

zyro23 commented Jan 15, 2017

you can use spring @Controller beans like in a normal spring web app.

on grails actions, @RequestMapping should not have any effect (grails does not "know" the annotation and spring does not scan grails controller beans for request mappings).

ref:

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

No branches or pull requests

2 participants