aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'cmd')
-rw-r--r--cmd/update.go4
-rw-r--r--cmd/web.go5
2 files changed, 8 insertions, 1 deletions
diff --git a/cmd/update.go b/cmd/update.go
index d0e0acde..c030b6cf 100644
--- a/cmd/update.go
+++ b/cmd/update.go
@@ -42,5 +42,7 @@ func runUpdate(c *cli.Context) {
repoUserName := os.Getenv("repoUserName")
repoName := os.Getenv("repoName")
- models.Update(args[0], args[1], args[2], userName, repoUserName, repoName, userId)
+ if err := models.Update(args[0], args[1], args[2], userName, repoUserName, repoName, userId); err != nil {
+ log.GitLogger.Fatal(err.Error())
+ }
}
diff --git a/cmd/web.go b/cmd/web.go
index f62bc255..d29183a9 100644
--- a/cmd/web.go
+++ b/cmd/web.go
@@ -189,7 +189,12 @@ func runWeb(*cli.Context) {
reqOwner := middleware.RequireOwner()
m.Group("/o", func(r martini.Router) {
+ r.Get("/create", org.New)
r.Get("/:org", org.Organization)
+ r.Get("/:org/dashboard", org.Dashboard)
+ r.Get("/:org/members", org.Members)
+ r.Get("/:org/teams", org.Teams)
+ r.Get("/:org/setting", org.Setting)
})
m.Group("/:username/:reponame", func(r martini.Router) {