-
Notifications
You must be signed in to change notification settings - Fork 77
Consistency for ways to use 2.0 API (common / current) #359
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
Conversation
keedya
commented
Jul 9, 2016
- Able to switch on / by default in one place
lib/services/http-service.js
Outdated
| ); | ||
|
|
||
| //re-route common and current | ||
| var varsionPath = configuration.get('versionBase') || '1.1'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
versionPath instead of varsionPath?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh wow, totally missed that!! Thanks @zyoung51
|
Just a nitpick on the variable name. LGTM, +1 |
- Able to switch on / by default in one place
|
@zyoung51 all set |
|
👍 |
| ); | ||
|
|
||
| //re-route common and current | ||
| var versionPath = configuration.get('versionBase') || '1.1'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@keedya I think we should add an assert or some other type of check to verify that versionBase is set to a valid value.
|
👍 One minor comment related to config validation, but I think that's more of a general problem outside the scope of this PR. |
|
test this please |