生成代码,逐步进行优化
This commit is contained in:
@@ -7,11 +7,11 @@
|
||||
}
|
||||
},
|
||||
"codeConfig": {
|
||||
"admin": "example/config/app.json"
|
||||
"admin": "config/app.json"
|
||||
},
|
||||
"db": {
|
||||
"sqlite": {
|
||||
"path": "example/config/data.db"
|
||||
"path": "config/data.db"
|
||||
}
|
||||
},
|
||||
"defFile": [
|
||||
|
||||
+1
-1
@@ -11,7 +11,7 @@ import (
|
||||
|
||||
func main() {
|
||||
|
||||
appIns := hotime.Init("example/config/config.json")
|
||||
appIns := hotime.Init("config/config.json")
|
||||
//RESTfull接口适配
|
||||
appIns.SetConnectListener(func(context *hotime.Context) bool {
|
||||
if len(context.RouterString) < 2 || len(context.RouterString) > 3 ||
|
||||
|
||||
Reference in New Issue
Block a user