-
Notifications
You must be signed in to change notification settings - Fork 85
Ability to override method and publication prefixes #106
Comments
There's a per-method URL option you can pass already - or do you just want to set a different prefix? |
Yeah this would change just the hardcoded 'methods/' and 'publications/' I'd rather avoid using the per-method URL option if possible for a couple
As an example, I would be naming a method 'users/profile/avatar', then What do you think? There's a per-method URL option you can pass already - or do you just want — This E-mail is confidential. It may also be legally privileged. If you are |
I'd say the best thing would be to have a global configurable function that maps the name of the method or publication to a URL. I'd definitely accept a pr that implements that! |
I'm not sure if I understand - I was thinking something like this. Is that what you had in mind? |
YES! I would very much like to be able to configure these URLs... @carlevans719 link/commit is a good start, allowing us to specify our own prefixes. In my mind, though, I'd want to be able to translate any and all routes.
|
Allowing users to set config function to transform URL paths stubailo#106 urlTransform: (type, name) => <urlPath>
now in PR #109 ^ thanks @carlevans719 & super-thanks @stubailo |
Currently, methods are available at
/methods/<method-name>
and publications at/publications/<publication-name>
. I'd like to be able to override these (probably withSimpleRest.configure
) to something different.Can you think of any issues with this? I'm happy to raise a PR if it helps :)
The text was updated successfully, but these errors were encountered: