16 lines
477 B
JavaScript
16 lines
477 B
JavaScript
const locals = require('./locals');
|
|
const cleanUpQueryParams = require('./clean-up-query-params');
|
|
const layergroupToken = require('./layergroup-token');
|
|
const authorize = require('./authorize');
|
|
const dbConnSetup = require('./db-conn-setup');
|
|
|
|
module.exports = function prepareContextMiddleware(authApi, pgConnection) {
|
|
return [
|
|
locals,
|
|
cleanUpQueryParams(),
|
|
layergroupToken,
|
|
authorize(authApi),
|
|
dbConnSetup(pgConnection)
|
|
];
|
|
};
|