diff --git a/questiongeneration/index.js b/questiongeneration/index.js index 82d45065..8144d0cd 100644 --- a/questiongeneration/index.js +++ b/questiongeneration/index.js @@ -1,8 +1,6 @@ const express = require('express'); const axios = require('axios'); const cors = require('cors'); -const fs = require('fs'); -const { option4 } = require('./readFromFile.js'); const app = express(); const port = 8010; @@ -172,8 +170,7 @@ async function ciudadRandom() { app.get('/question', async (_req, res) => { try { - //await option3(_req, res); - option4(); + await option3(_req, res); } catch (error) { console.error(error); res.status(500).json({ error: 'Error al procesar la solicitud' }); @@ -182,7 +179,7 @@ async function ciudadRandom() { // Start the gateway service const server = app.listen(port, () => { - console.log(`Question Generation Service listening at http://localhost:${port}`); + console.log(`Question Generation Service listening at http://localhost:${port}/question`); }); module.exports = server