Configuration Management
Learn how to define configurations
Introduction
Defining a Configuration
module.exports = {
api_key: 'api key goes here'
};Accessing the Configuration
const {Controller} = require ('@onhilltech/blueprint');
module.exports = Controller.extend ({
apiKey: null,
init () {
this._super.call (this, ...arguments);
const config = this.app.lookup ('config:facebook');
this.apiKey = config.apiKey;
}
});Last updated