Build controllers (analysis and server info) in server
This commit is contained in:
parent
5bb5bc42ee
commit
6bf06116df
@ -1,4 +0,0 @@
|
||||
module.exports = {
|
||||
Analyses: require('./analyses'),
|
||||
ServerInfo: require('./server_info')
|
||||
};
|
@ -6,8 +6,6 @@ var RedisPool = require('redis-mpool');
|
||||
var cartodbRedis = require('cartodb-redis');
|
||||
var _ = require('underscore');
|
||||
|
||||
var controller = require('./controllers');
|
||||
|
||||
const AnalysisLayergroupController = require('./controllers/layergroup/analysis');
|
||||
const AttributesLayergroupController = require('./controllers/layergroup/attributes');
|
||||
const DataviewLayergroupController = require('./controllers/layergroup/dataview');
|
||||
@ -21,6 +19,10 @@ const AdminTemplateController = require('./controllers/template/admin');
|
||||
const PreviewTemplateController = require('./controllers/template/preview');
|
||||
const TileTemplateController = require('./controllers/template/tile');
|
||||
|
||||
const AnalysesController = require('./controllers/analyses');
|
||||
|
||||
const ServerInfoController = require('./controllers/server-info');
|
||||
|
||||
var SurrogateKeysCache = require('./cache/surrogate_keys_cache');
|
||||
var NamedMapsCacheEntry = require('./cache/model/named_maps_entry');
|
||||
var VarnishHttpCacheBackend = require('./cache/backend/varnish_http');
|
||||
@ -352,9 +354,13 @@ module.exports = function(serverOptions) {
|
||||
userLimitsApi
|
||||
).register(templateRouter);
|
||||
|
||||
new controller.Analyses(pgConnection, authApi, userLimitsApi).register(mapRouter);
|
||||
new AnalysesController(
|
||||
pgConnection,
|
||||
authApi,
|
||||
userLimitsApi
|
||||
).register(mapRouter);
|
||||
|
||||
new controller.ServerInfo(versions).register(monitorRouter);
|
||||
new ServerInfoController(versions).register(monitorRouter);
|
||||
|
||||
const { base_url_mapconfig: mapConfigBasePath, base_url_templated: templateBasePath } = serverOptions;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user