mirror of
https://gitee.com/johng/gf
synced 2026-06-07 02:12:11 +08:00
improve gtime.ParseTimeFromContent
This commit is contained in:
20
.example/net/ghttp/server/router/duplicated/duplicated.go
Normal file
20
.example/net/ghttp/server/router/duplicated/duplicated.go
Normal file
@ -0,0 +1,20 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"github.com/gogf/gf/frame/g"
|
||||
"github.com/gogf/gf/net/ghttp"
|
||||
)
|
||||
|
||||
func main() {
|
||||
s := g.Server()
|
||||
s.Group("/", func(group *ghttp.RouterGroup) {
|
||||
group.ALL("/test", func(r *ghttp.Request) {
|
||||
r.Response.Writeln(1)
|
||||
})
|
||||
group.ALL("/test", func(r *ghttp.Request) {
|
||||
r.Response.Writeln(2)
|
||||
})
|
||||
})
|
||||
s.SetPort(8199)
|
||||
s.Run()
|
||||
}
|
||||
Reference in New Issue
Block a user