We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8c8687e commit 4ba32deCopy full SHA for 4ba32de
1 file changed
README.md
@@ -16,7 +16,7 @@ func StartServer() error {
16
//设置dotserver日志目录
17
dotserver.SetLogPath("/home/logs/wwwroot/")
18
//设置路由
19
- dotserver.HttpServer.GET("/index", func(ctx *dotweb.HttpContext) {
+ dotserver.HttpServer.Router().GET("/index", func(ctx *dotweb.HttpContext) {
20
ctx.WriteString("welcome to my first web!")
21
})
22
//开始服务
0 commit comments