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

107
Visualizações
Querystring is striked through

Can somebody help me out. Why is the querystring striked through? My code: [![querystring problem][1]][1]


const handler = async (event, context) => {
  // Only allow POST
  if (event.httpMethod !== "POST") {
    return { statusCode: 405, body: "Method Not Allowed" };
  }

  // When the method is POST, the name will no longer be in the event’s
  // queryStringParameters – it’ll be in the event body encoded as a query string
  const params = querystring.parse(event.body);
  console.log(params);

  const { firstname, lastname, country } = params;


  // maak er een object van dat de data terugstuurt naar de user
  const userData = {
    firstname,
    lastname,
    country

  }

  return {
    statusCode: 200,
    body: JSON.stringify(userData),
  };
};
module.exports = {handler};

In Vscode it shows up as this: [1]: https://i.stack.imgur.com/lhX7G.png

I copied the code straight from Netlify. 2 [https://functions.netlify.com/playground/#hello%2C-%7Bname%7D-(post-version)]

How can I solve this?

about 4 years ago · Juan Pablo Isaza
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