Skip to content

Commit

Permalink
Arreglo otro fallo gateway.
Browse files Browse the repository at this point in the history
  • Loading branch information
UO289659 committed Apr 1, 2024
1 parent 121977f commit ab6d02c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions gatewayservice/gateway-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,11 @@ app.get('/statistics', async (req, res) => {
const questionResponse = await axios.get(statisticssServiceUrl+'/statistics', {
params: req.query,
});
} catch (error) {
res.status(error.response.status).json({ error: error.response.data.error });
}
});
res.json(questionResponse.data);
} catch (error) {
res.status(error.response.status).json({ error: error.response.data.error });
}
});

app.get('/questions', async (req, res) => {
try {
Expand Down

0 comments on commit ab6d02c

Please sign in to comment.