How would I read and change the values if I posted JSON data to /post route in gofiber:
{
"name" : "John Wick"
"email" : "[email protected]"
}
app.Post("/post", func(c *fiber.Ctx) error {
//read the req.body here
name := req.body.name
return c.SendString(name)
}
You can use
BodyParser