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

How do I get urlPrefix? #381

Open
gkpo opened this issue May 5, 2016 · 1 comment
Open

How do I get urlPrefix? #381

gkpo opened this issue May 5, 2016 · 1 comment

Comments

@gkpo
Copy link

gkpo commented May 5, 2016

From a random controller. How do I access restmod's urlPrefix setting?
Thanks in advance.

@utf4
Copy link

utf4 commented Nov 3, 2016

You can use getProperty('urlPrefix') on any random model like:

Bike.getProperty('urlPrefix'); // It will return the url prefix added previously

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

No branches or pull requests

2 participants