refactory: rebuild route tree
This commit is contained in:
@ -10,7 +10,7 @@ func main() {
|
||||
|
||||
app.Get("/nice", h1, h2)
|
||||
|
||||
log.Fatal(app.Run(":3333"))
|
||||
log.Fatal(app.Run(":80"))
|
||||
}
|
||||
|
||||
func h1(c *nf.Ctx) error {
|
||||
@ -19,7 +19,8 @@ func h1(c *nf.Ctx) error {
|
||||
return c.JSON(nf.Map{"status": 201, "msg": "nice to meet you"})
|
||||
}
|
||||
|
||||
return c.Next()
|
||||
//return c.Next()
|
||||
return nil
|
||||
}
|
||||
|
||||
func h2(c *nf.Ctx) error {
|
||||
|
Reference in New Issue
Block a user