|
@@ -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)
|
|
|
}
|