diff options
author | Unknown <joe2010xtmf@163.com> | 2014-02-17 18:38:50 -0500 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-02-17 18:38:50 -0500 |
commit | 3eb1ab9e8b12a80096d6b10a7f0a398aec8d8172 (patch) | |
tree | f37d6bc5c6d006d97e4fd4f3a3a9891eb98c5156 /gogs.go | |
parent | 5da2ad743567297b965b06a8e75ab37d308b215c (diff) |
Add UI for register user
Diffstat (limited to 'gogs.go')
-rw-r--r-- | gogs.go | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -12,18 +12,19 @@ import ( "github.com/martini-contrib/render" "github.com/gogits/gogs/routers" + "github.com/gogits/gogs/routers/user" "github.com/gogits/gogs/utils" "github.com/gogits/gogs/utils/log" ) -const APP_VER = "0.0.0.0212" +const APP_VER = "0.0.0.0217" func init() { } func main() { - log.Info("App Name: %s", utils.Cfg.MustValue("", "APP_NAME")) + log.Info("%s %s", utils.Cfg.MustValue("", "APP_NAME"), APP_VER) m := martini.Classic() @@ -32,6 +33,8 @@ func main() { // Routers. m.Get("/", routers.Dashboard) + m.Get("/user/signin", user.SignIn) + m.Any("/user/signup", user.SignUp) listenAddr := fmt.Sprintf("%s:%s", utils.Cfg.MustValue("server", "HTTP_ADDR"), |