I like to create two API in which request is made to get information in one API and the insertion to the db is made in another API call. How could I able to achieve this in Fiber.
consider the following code block
func getName(c *fiber.Ctx) {
// get the name api
// call the insertName func from here with name argument
insertName(arg)
}
func insertName() {
// insert the argument to the database
}
How to call the second function with POST in Go fiber framework, so that I pass the payload to another API.