diff options
author | Unknown <joe2010xtmf@163.com> | 2014-04-13 18:12:07 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-04-13 18:12:07 -0400 |
commit | 4b9b8024ba59b5b84d92dca650761b35ebf6408a (patch) | |
tree | f40ed3d56e5df158168cb38a5f3b479c17903362 /routers/install.go | |
parent | 8c266f2df5848b230c6fbb0bc4578a8907edc725 (diff) | |
download | gitea-4b9b8024ba59b5b84d92dca650761b35ebf6408a.tar.gz gitea-4b9b8024ba59b5b84d92dca650761b35ebf6408a.zip |
Clean oauth code
Diffstat (limited to 'routers/install.go')
-rw-r--r-- | routers/install.go | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/routers/install.go b/routers/install.go index d66f5b39b6..f09401370b 100644 --- a/routers/install.go +++ b/routers/install.go @@ -22,6 +22,7 @@ import ( "github.com/gogits/gogs/modules/log" "github.com/gogits/gogs/modules/mailer" "github.com/gogits/gogs/modules/middleware" + "github.com/gogits/gogs/modules/social" ) // Check run mode(Default of martini is Dev). @@ -36,6 +37,11 @@ func checkRunMode() { log.Info("Run Mode: %s", strings.Title(martini.Env)) } +func NewServices() { + base.NewBaseServices() + social.NewOauthService() +} + // GlobalInit is for global configuration reload-able. func GlobalInit() { base.NewConfigContext() @@ -52,7 +58,7 @@ func GlobalInit() { models.HasEngine = true cron.NewCronContext() } - base.NewServices() + NewServices() checkRunMode() } |