diff options
author | Unknown <joe2010xtmf@163.com> | 2014-04-10 16:36:50 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-04-10 16:36:50 -0400 |
commit | 45462662e9bdb001f1cf3d4ca0e4d679757c7642 (patch) | |
tree | eb5f3bfe24a423601ad27121c95427719cb16984 /routers/install.go | |
parent | 459223cf01d19a6956d370fad9ab41d3a32233d0 (diff) | |
download | gitea-45462662e9bdb001f1cf3d4ca0e4d679757c7642.tar.gz gitea-45462662e9bdb001f1cf3d4ca0e4d679757c7642.zip |
Add flash
Diffstat (limited to 'routers/install.go')
-rw-r--r-- | routers/install.go | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/routers/install.go b/routers/install.go index d3686053b1..78ba383dee 100644 --- a/routers/install.go +++ b/routers/install.go @@ -23,10 +23,6 @@ import ( "github.com/gogits/gogs/modules/middleware" ) -type installRouter int - -var InstallRouter installRouter = 1 - // Check run mode(Default of martini is Dev). func checkRunMode() { switch base.Cfg.MustValue("", "RUN_MODE") { @@ -58,7 +54,7 @@ func GlobalInit() { checkRunMode() } -func (r installRouter) Get(ctx *middleware.Context, form auth.InstallForm) { +func Install(ctx *middleware.Context, form auth.InstallForm) { if base.InstallLock { ctx.Handle(404, "install.Install", errors.New("Installation is prohibited")) return @@ -101,7 +97,7 @@ func (r installRouter) Get(ctx *middleware.Context, form auth.InstallForm) { ctx.HTML(200, "install") } -func (r installRouter) Post(ctx *middleware.Context, form auth.InstallForm) { +func InstallPost(ctx *middleware.Context, form auth.InstallForm) { if base.InstallLock { ctx.Handle(404, "install.Install", errors.New("Installation is prohibited")) return |