Refactor and advancements
- Drops mailController, centralized in UserController - Adds views folder for change_password - Improves PromiseRouter to support text results - Improves PromiseRouter to support empty responses for redirects - Adds options to AdaptableController - UsersController gracefully fails when no adapter is set - Refactors GlobalConfig into same style for Routers
This commit is contained in:
@@ -10,11 +10,12 @@ based on the parameters passed
|
||||
|
||||
// _adapter is private, use Symbol
|
||||
var _adapter = Symbol();
|
||||
import cache from '../cache';
|
||||
import Config from '../Config';
|
||||
|
||||
export class AdaptableController {
|
||||
|
||||
constructor(adapter, appId) {
|
||||
constructor(adapter, appId, options) {
|
||||
this.options = options;
|
||||
this.adapter = adapter;
|
||||
this.appId = appId;
|
||||
}
|
||||
@@ -29,7 +30,7 @@ export class AdaptableController {
|
||||
}
|
||||
|
||||
get config() {
|
||||
return cache.apps[this.appId];
|
||||
return new Config(this.appId);
|
||||
}
|
||||
|
||||
expectedAdapterType() {
|
||||
|
||||
Reference in New Issue
Block a user