rename ngin to rest

This commit is contained in:
kevin
2020-07-31 11:14:48 +08:00
parent e133ffd820
commit 0897f60c5d
78 changed files with 118 additions and 111 deletions

View File

@@ -4,7 +4,7 @@ import (
"flag"
"zero/core/conf"
"zero/ngin"
"zero/rest"
"zero/tools/goctl/api/demo/config"
"zero/tools/goctl/api/demo/handler"
)
@@ -17,7 +17,7 @@ func main() {
var c config.Config
conf.MustLoad(*configFile, &c)
engine := ngin.MustNewEngine(c.NgConf)
engine := rest.MustNewEngine(c.RtConf)
defer engine.Stop()
handler.RegisterHandlers(engine)