Remove app dependency
This commit is contained in:
parent
713ad03c3b
commit
62f428f434
@ -5,13 +5,11 @@ var cors = require('../middleware/cors');
|
||||
|
||||
|
||||
/**
|
||||
* @param app
|
||||
* @param {TemplateMaps} templateMaps
|
||||
* @param {AuthApi} authApi
|
||||
* @constructor
|
||||
*/
|
||||
function NamedMapsAdminController(app, templateMaps, authApi) {
|
||||
this.app = app;
|
||||
function NamedMapsAdminController(templateMaps, authApi) {
|
||||
this.templateMaps = templateMaps;
|
||||
this.authApi = authApi;
|
||||
}
|
||||
|
@ -209,7 +209,7 @@ module.exports = function(serverOptions) {
|
||||
tablesExtentApi
|
||||
).register(app);
|
||||
|
||||
new controller.NamedMapsAdmin(app, templateMaps, authApi).register(app);
|
||||
new controller.NamedMapsAdmin(templateMaps, authApi).register(app);
|
||||
|
||||
new controller.ServerInfo().register(app);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user