Changeset View
Changeset View
Standalone View
Standalone View
lib/chip-types/access-strategy.js
"use strict"; | |||||
const locreq = require("locreq")(__dirname); | const locreq = require("locreq")(__dirname); | ||||
const Promise = require("bluebird"); | const Promise = require("bluebird"); | ||||
const AccessStrategyType = locreq("lib/chip-types/access-strategy-type.js"); | const AccessStrategyType = locreq("lib/chip-types/access-strategy-type.js"); | ||||
const AccessStrategy = function(app, declaration) { | const AccessStrategy = function(app, declaration) { | ||||
this.app = app; | this.app = app; | ||||
if (declaration instanceof Array) { | if (declaration instanceof Array) { | ||||
this.type = new AccessStrategyType(app, declaration[0]); | this.type = new AccessStrategyType(app, declaration[0]); | ||||
Show All 34 Lines |