Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

173
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda