Skip to content

Commit

Permalink
prueba
Browse files Browse the repository at this point in the history
  • Loading branch information
uo277310 committed May 1, 2024
1 parent de8595f commit 14ba7fd
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions gatewayservice/gateway-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,7 @@ const swaggerUi = require('swagger-ui-express');
const fs = require("fs")
const YAML = require('yaml')

require('dotenv').config();

const app = express();
app.disable("x-powered-by");
const port = 8000;

const authServiceUrl = process.env.AUTH_SERVICE_URL || 'http://localhost:8002';
Expand All @@ -21,11 +18,6 @@ const genQuestServiceUrl = process.env.GEN_SERVICE_URL || 'http://localhost:8003
const rankingServiceUrl = process.env.RANK_SERVICE_URL || 'http://localhost:8004';
const questiongeneratorserviceUrl = process.env.QTEST_SERVICE_URL || 'http://localhost:8007';

app.use((req, res, next) => {
res.header('Access-Control-Allow-Origin', '*');
next();
});

app.use(cors());
app.use(express.json());

Expand Down

0 comments on commit 14ba7fd

Please sign in to comment.