mirror of
https://github.com/beego/bee.git
synced 2024-11-21 18:40:54 +00:00
use filepath to generate appcode
This commit is contained in:
parent
ffbe29ae22
commit
e84d6f9a9c
@ -863,7 +863,7 @@ func writeRouterFile(tables []*Table, rPath string, selectedTables map[string]bo
|
||||
nameSpaces = append(nameSpaces, nameSpace)
|
||||
}
|
||||
// Add export controller
|
||||
fpath := path.Join(rPath, "router.go")
|
||||
fpath := filepath.Join(rPath, "router.go")
|
||||
routerStr := strings.Replace(RouterTPL, "{{nameSpaces}}", strings.Join(nameSpaces, ""), 1)
|
||||
routerStr = strings.Replace(routerStr, "{{pkgPath}}", pkgPath, 1)
|
||||
var f *os.File
|
||||
|
Loading…
Reference in New Issue
Block a user