mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-25 00:07:47 +01:00
fix: expose evaluated config and permissions object
To make it easier to extend unleash we should expose evaluated configuration.
This commit is contained in:
parent
bf7a246707
commit
924edc8109
@ -1,6 +1,7 @@
|
||||
'use strict';
|
||||
|
||||
const ADMIN = 'ADMIN';
|
||||
const CLIENT = 'CLIENT';
|
||||
const CREATE_FEATURE = 'CREATE_FEATURE';
|
||||
const UPDATE_FEATURE = 'UPDATE_FEATURE';
|
||||
const DELETE_FEATURE = 'DELETE_FEATURE';
|
||||
@ -14,6 +15,7 @@ const DELETE_CONTEXT_FIELD = 'DELETE_CONTEXT_FIELD';
|
||||
|
||||
module.exports = {
|
||||
ADMIN,
|
||||
CLIENT,
|
||||
CREATE_FEATURE,
|
||||
UPDATE_FEATURE,
|
||||
DELETE_FEATURE,
|
||||
|
@ -10,6 +10,7 @@ const { createStores } = require('./db');
|
||||
const { createOptions } = require('./options');
|
||||
const StateService = require('./state-service');
|
||||
const User = require('./user');
|
||||
const permissions = require('./permissions');
|
||||
const AuthenticationRequired = require('./authentication-required');
|
||||
const { addEventHook } = require('./event-hook');
|
||||
|
||||
@ -60,6 +61,7 @@ async function createApp(options) {
|
||||
server.on('listening', () =>
|
||||
resolve({
|
||||
app,
|
||||
config,
|
||||
stores,
|
||||
server,
|
||||
eventBus,
|
||||
@ -92,4 +94,5 @@ module.exports = {
|
||||
start,
|
||||
User,
|
||||
AuthenticationRequired,
|
||||
permissions,
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user