Commit 3d536e0c authored by Rodrigo Tapia-McClung's avatar Rodrigo Tapia-McClung

Remove components from app definition. Update app script

parent 1e4ef9b3
This diff is collapsed.
......@@ -14,11 +14,8 @@
"@mapbox/sphericalmercator": "^1.1.0",
"cors": "^2.8.5",
"express": "^4.17.1",
"express-fileupload": "^1.1.5",
"morgan": "^1.9.1",
"nodemon": "^1.19.2",
"pg": "^7.12.1",
"swagger-jsdoc": "^3.4.0",
"swagger-ui-express": "^4.0.7"
"pg": "^7.12.1"
}
}
......@@ -22,18 +22,11 @@ readOnlyPool.connect();
const DirCache = require('./utils/dircache.js')
const cache = new DirCache(`./cache/${dbconfig.database?dbconfig.database:process.env.PGDATABASE?process.env.PGDATABASE:''}`);
const swagger = require('./swagger.js')(app);
const login = require('./login.js')(app);
const upload = require('./upload.js')(app);
const mvt = require('./mvt.js')(app, readOnlyPool, cache);
const geojson = require('./geojson.js')(app, readOnlyPool);
const geobuf = require('./geobuf.js')(app, readOnlyPool);
const listLayers = require('./list_layers.js')(app, readOnlyPool);
const layerColumns = require('./layer_columns.js')(app, readOnlyPool);
const bbox = require('./bbox.js')(app, readOnlyPool, cache);
const query = require('./query.js')(app, readOnlyPool);
const columnStats = require('./column_stats.js')(app, readOnlyPool, cache);
const server = app.listen(pgserverconfig.port);
server.setTimeout(600000);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment