-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Mark push as enabled in serverInfo endpoint #1164
Conversation
Current coverage is
|
|
||
export class FeaturesRouter extends PromiseRouter { | ||
mountRoutes() { | ||
this.route('GET','/serverInfo', middleware.promiseEnforceMasterKeyAccess, () => { | ||
this.route('GET','/serverInfo', middleware.promiseEnforceMasterKeyAccess, req => { | ||
let features = { |
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.
const?
@drew-gross updated the pull request. |
@@ -39,9 +34,13 @@ export class PushController extends AdaptableController { | |||
} | |||
} | |||
|
|||
pushIsAvailable() { |
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.
Maybe define as a getter?
Needs rebase, small optional nit but LGTM. |
@drew-gross updated the pull request. |
@drew-gross updated the pull request. |
This also refactors the features endpoint to be more functional and less imperative. The response to the features endpoint is now a pure function of the server's configuration.