Skip to content

Commit

Permalink
fix security hotspot
Browse files Browse the repository at this point in the history
  • Loading branch information
pelazas committed Mar 5, 2024
1 parent 207052f commit e41df85
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ services:
environment:
AUTH_SERVICE_URL: http://authservice:8002
USER_SERVICE_URL: http://userservice:8001
QG_SERVICE_URL: http://questiongeneratorservice:8003
GQ_SERVICE_URL: http://questiongeneratorservice:8003

webapp:
container_name: webapp-${teamname:-defaultASW}
Expand Down
3 changes: 2 additions & 1 deletion gatewayservice/gateway-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ app.get('/health', (_req, res) => {
app.post('/login', async (req, res) => {
try {
// Forward the login request to the authentication service
console.log(authServiceUrl)
const authResponse = await axios.post(authServiceUrl+'/login', req.body);
res.json(authResponse.data);
} catch (error) {
Expand All @@ -44,7 +45,7 @@ app.post('/adduser', async (req, res) => {

app.get('/questionsGame', async (req, res) => {
try {
const response = await axios.get("http://questiongeneratorservice:8003/game", req.body);
const response = await axios.get( qgServiceUrl+"/game");
res.json(response.data);
} catch (error) {
console.error(error);
Expand Down

0 comments on commit e41df85

Please sign in to comment.