fix: 修正后台中间件bug

This commit is contained in:
tangtanglove
2023-02-11 08:10:46 +08:00
parent 5cc9675352
commit ac0c55022d
4 changed files with 22 additions and 10 deletions

View File

@@ -32,5 +32,10 @@ func main() {
// 中间件
b.Use(middleware.Handle)
b.GET("/", func(ctx *builder.Context) error {
ctx.Write([]byte("hello world!"))
return nil
})
b.Run(":3000")
}