diff --git a/gatewayservice/gateway-service.js b/gatewayservice/gateway-service.js index 43d570f..2664cc8 100644 --- a/gatewayservice/gateway-service.js +++ b/gatewayservice/gateway-service.js @@ -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 }); @@ -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 });