Skip to content

Commit 4ba32de

Browse files
committed
update Readme.MD: modify Router
1 parent 8c8687e commit 4ba32de

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ func StartServer() error {
1616
//设置dotserver日志目录
1717
dotserver.SetLogPath("/home/logs/wwwroot/")
1818
//设置路由
19-
dotserver.HttpServer.GET("/index", func(ctx *dotweb.HttpContext) {
19+
dotserver.HttpServer.Router().GET("/index", func(ctx *dotweb.HttpContext) {
2020
ctx.WriteString("welcome to my first web!")
2121
})
2222
//开始服务

0 commit comments

Comments
 (0)