mirror of
https://github.com/quarkcloudio/quark-go.git
synced 2025-10-05 07:56:58 +08:00
fix: 修正后台中间件bug
This commit is contained in:
@@ -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")
|
||||
}
|
||||
|
Reference in New Issue
Block a user