Skip to content

Commit

Permalink
Code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
tiberiuichim committed Sep 17, 2021
1 parent 36a0eb5 commit 3352382
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const applyConfig = (config) => {

const middleware = express.Router();
middleware.use(express.json());
middleware.use(express.urlencoded({ extended: true }));
// middleware.use(express.urlencoded({ extended: true }));
middleware.all('**/_es/*', handler);
middleware.id = 'esProxyMiddleware';

Expand Down
1 change: 1 addition & 0 deletions src/middleware/elasticsearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ const handleDownload = (req, res, next, { appName, urlQA, urlES }) => {

export const createHandler = ({ urlQA, urlES }) => {
return function esProxyHandler(req, res, next) {
// console.log('req', req);
const appNames = Object.keys(config.settings.searchlib.searchui);

let appName;
Expand Down

0 comments on commit 3352382

Please sign in to comment.