1
0
mirror of https://github.com/beego/bee.git synced 2025-07-05 18:20:18 +00:00

routes fixed to routers

This commit is contained in:
astaxie
2013-12-23 23:45:15 +08:00
parent 88be60060e
commit 2ff8323c11
2 changed files with 5 additions and 5 deletions

6
new.go
View File

@ -37,7 +37,7 @@ The [appname] folder has following structure:
|- controllers
|- default.go
|- models
|- routes
|- routers
|- router.go
|- tests
|- default_test.go
@ -106,8 +106,8 @@ func createApp(cmd *Command, args []string) {
fmt.Println(path.Join(apppath, "controllers") + string(path.Separator))
os.Mkdir(path.Join(apppath, "models"), 0755)
fmt.Println(path.Join(apppath, "models") + string(path.Separator))
os.Mkdir(path.Join(apppath, "routes"), 0755)
fmt.Println(path.Join(apppath, "routes") + string(path.Separator))
os.Mkdir(path.Join(apppath, "routers"), 0755)
fmt.Println(path.Join(apppath, "routers") + string(path.Separator))
os.Mkdir(path.Join(apppath, "tests"), 0755)
fmt.Println(path.Join(apppath, "tests") + string(path.Separator))
os.Mkdir(path.Join(apppath, "static"), 0755)