Skip to content

Commit

Permalink
No longer need these
Browse files Browse the repository at this point in the history
  • Loading branch information
tiberiuichim committed May 20, 2022
1 parent 4ad3b7f commit d6886ea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,7 @@ const applyConfig = (config) => {
const express = require('express');
const { createHandler } = require('./middleware/elasticsearch');

const handler = createHandler({
urlES: process.env.RAZZLE_PROXY_ES_DSN || 'http://localhost:9200/_all',
urlNLP: process.env.RAZZLE_PROXY_QA_DSN || 'http://localhost:8000/api',
});
const handler = createHandler();

const middleware = express.Router();
middleware.use(express.json({ limit: config.settings.maxResponseSize }));
Expand Down
2 changes: 1 addition & 1 deletion src/middleware/elasticsearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ const getUrlES = (appName) => {
);
};

export const createHandler = ({ urlNLP, urlES }) => {
export const createHandler = () => {
return function esProxyHandler(req, res, next) {
let urlES, urlNLP;

Expand Down

0 comments on commit d6886ea

Please sign in to comment.