i need help with the following!!

  • handling POST requests on a nodejs server (NOT making these requests)

  • creating user IDs and/or tokens (and handling those too)

(context: i want to rewrite the bit talk api, specifically so it doesnt use GET requests that have a user’s password in plain text. thats bad practice)

once i get home ill release the bit talk server code on github, which you can fork and fix my bad code

(done, thx @wynd)

Dec 1, 2022, 9:44 PM
1 0 3

comments (single view)

app.use(express.json())

app.post(`/`, (req, res) => {

console.log(req.body)

})

// make sure to use content-type: application/json when making requests to this

tysm!!

Bruh use a code block

View all comments