Skip to content

Commit

Permalink
[Enhancement]: Use fiber.Map instead of map object (#154)
Browse files Browse the repository at this point in the history
  • Loading branch information
NimishKashyap authored Dec 18, 2023
1 parent 9f133be commit 886d09b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/template/framework/files/routes/fiber.go.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ func (s *FiberServer) RegisterFiberRoutes() {
}

func (s *FiberServer) HelloWorldHandler(c *fiber.Ctx) error {
resp := map[string]string{
resp := fiber.Map{
"message": "Hello World",
}

return c.JSON(resp)
}
}

0 comments on commit 886d09b

Please sign in to comment.