Browse Source

Fiber: Bump v1.12.0 (#5788)

* Update Fiber v1.10.0

* Fiber: Bump v1.12.0

* Update constant
fenny 5 years ago
parent
commit
29c363b508
2 changed files with 4 additions and 4 deletions
  1. 1 1
      frameworks/Go/fiber/src/go.mod
  2. 3 3
      frameworks/Go/fiber/src/server.go

+ 1 - 1
frameworks/Go/fiber/src/go.mod

@@ -4,6 +4,6 @@ go 1.14
 
 require (
 	github.com/valyala/quicktemplate v1.4.1
-	github.com/gofiber/fiber v1.10.0
+	github.com/gofiber/fiber v1.12.0
 	github.com/jackc/pgx/v4 v4.6.0
 )

+ 3 - 3
frameworks/Go/fiber/src/server.go

@@ -49,10 +49,10 @@ func main() {
 
 	app.Get("/plaintext", plaintextHandler)
 	app.Get("/json", jsonHandler)
-	app.Get("/queries", queriesHandler)
-	app.Get("/fortune", templateHandler)
 	app.Get("/db", dbHandler)
 	app.Get("/update", updateHandler)
+	app.Get("/queries", queriesHandler)
+	app.Get("/fortune", templateHandler)
 
 	app.Listen(8080)
 }
@@ -148,7 +148,7 @@ func initDatabase() {
 // jsonHandler :
 func jsonHandler(c *fiber.Ctx) {
 	m := AcquireJSON()
-	m.Message = "Hello, World!"
+	m.Message = helloworld
 	c.JSON(m)
 	ReleaseJSON(m)
 }