From 2ff8323c1189a4f1ef6d0c01aaf5fbdb193d7e49 Mon Sep 17 00:00:00 2001 From: astaxie Date: Mon, 23 Dec 2013 23:45:15 +0800 Subject: [PATCH] routes fixed to routers --- apiapp.go | 4 ++-- new.go | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/apiapp.go b/apiapp.go index dcb7b11..655d31b 100644 --- a/apiapp.go +++ b/apiapp.go @@ -259,8 +259,8 @@ func createapi(cmd *Command, args []string) { os.Mkdir(path.Join(apppath, "controllers"), 0755) fmt.Println("create controllers:", path.Join(apppath, "controllers")) os.Mkdir(path.Join(apppath, "models"), 0755) - fmt.Println(path.Join(apppath, "routes") + string(path.Separator)) - os.Mkdir(path.Join(apppath, "routes"), 0755) + fmt.Println(path.Join(apppath, "routers") + string(path.Separator)) + os.Mkdir(path.Join(apppath, "routers"), 0755) fmt.Println("create models:", path.Join(apppath, "models")) os.Mkdir(path.Join(apppath, "tests"), 0755) fmt.Println("create tests:", path.Join(apppath, "tests")) diff --git a/new.go b/new.go index e7e2d0a..e156c0f 100644 --- a/new.go +++ b/new.go @@ -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)