I recently uploaded an existing node express application that I made to azure app service. I have encountered routing problems that wasnt present before when I was just using portforwarding and through localhost.
I have also added web.config file to my code but the problem still exists.
When going to /login I am getting a /get request error.
// ---------------------------------------------------------- //
// Routes //
// ---------------------------------------------------------- //
const router = express.Router();
app.get('/', (req, res) => {
return res.send("Smart Extension API");
});
return res.send("API starts here");
});
app.use('/login', pseudoLogin);
app.use('/user', userRoutes);