Internal API issue on deployment while working code on localhost
Api endpoints can't work correctly, only just initial endpoint is working.
NodeJS code is working locally but not working in the azure app service
I am trying to create an app service in Azure with an API web app that works fine locally.
Here package.json :
{
"name": "express-backend",
"version": "1.0.0",
"description": "",
"main": "index.js",
"engines": {
"node": "16.x"
},
"scripts": {
"start": "node index.js"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"cors": "^2.8.5",
"dotenv": "^16.0.3",
"express": "^4.18.2",
"mongoose": "^6.7.2",
"multer": "^1.4.5-lts.1",
"nodemailer": "^6.8.0",
"nodemon": "^2.0.20"
}
}