github.com/gogf/gf@v1.16.9/.example/net/ghttp/server/denyroutes/denyroutes.go (about) 1 package main 2 3 import "github.com/gogf/gf/frame/g" 4 5 func main() { 6 s := g.Server() 7 s.SetDenyRoutes([]string{ 8 "/config*", 9 }) 10 s.SetPort(8299) 11 s.Run() 12 }