Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

175
Views
Routing with Node & Express on Azure App Service

I'm not sure if this is a Node question or an Azure App Service question, but here goes:

I have a Node/Express app with two routes:

router.get("/users", checkAuthHeader, userController.getUsers);
router.post("/users", checkAuthHeader, userController.createUser);

On my local, this runs exactly as expected. GET /users returns a list of users, while POST /users creates a new user from the request body.

However, when I deploy this to Azure (vanilla setup of Azure App Service), any request to /users hits the request handler for GET /users, regardless of request method.

I have no idea why this is happening.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

I deployed a basic nodejs web app in azure . Here in my case I didn't overcome your problem of Post request not being able to reach .

POST Response :

https://i.imgur.com/dJJmNcb.png

GET Response :

enter image description here

Check the line of codes/response of your controller methods of GET & POST in KUDU/App Service Editor.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!