Remove app dependency

This commit is contained in:
Raul Ochoa 2015-09-16 01:48:54 +02:00
parent 713ad03c3b
commit 62f428f434
2 changed files with 2 additions and 4 deletions

View File

@ -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;
}

View File

@ -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);