Skip to content

Commit

Permalink
Merge pull request #114 from Arquisoft/build_sergiot
Browse files Browse the repository at this point in the history
Fixing gateway routing for deployment
  • Loading branch information
ritacatuxo authored Mar 14, 2024
2 parents 76ccc86 + 33a8d59 commit edb198b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gatewayservice/gateway-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ app.get('/health', (_req, res) => {
app.post('/login', async (req, res) => {
try {
// Forward the login request to the authentication service
const authResponse = await axios.post(authServiceUrl+'/login', req.body);
const authResponse = await axios.post(authServiceUrl+'/auth/login', req.body);
res.json(authResponse.data);
} catch (error) {
res.status(error.response.status).json({ error: error.response.data.error });
Expand All @@ -35,7 +35,7 @@ app.post('/login', async (req, res) => {
app.post('/adduser', async (req, res) => {
try {
// Forward the add user request to the user service
const userResponse = await axios.post(userServiceUrl+'/adduser', req.body);
const userResponse = await axios.post(userServiceUrl+'/user/adduser', req.body);
res.json(userResponse.data);
} catch (error) {
res.status(error.response.status).json({ error: error.response.data.error });
Expand Down

0 comments on commit edb198b

Please sign in to comment.