Features Endpoint for Dashboard.

This commit is contained in:
Peter Shin
2016-03-01 07:35:28 -08:00
parent 0b990b671a
commit 66eaf6c6ef
7 changed files with 184 additions and 2 deletions

View File

@@ -3,9 +3,16 @@ import PromiseRouter from '../PromiseRouter';
import rest from '../rest';
import AdaptableController from './AdaptableController';
import { PushAdapter } from '../Adapters/Push/PushAdapter';
import features from '../features';
const FEATURE_NAME = 'push';
export class PushController extends AdaptableController {
setFeature() {
features.setFeature(FEATURE_NAME, this.adapter.feature || {});
}
/**
* Check whether the deviceType parameter in qury condition is valid or not.
* @param {Object} where A query condition