aboutsummaryrefslogtreecommitdiffstats
path: root/web.go
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-04-10 14:37:43 -0400
committerUnknown <joe2010xtmf@163.com>2014-04-10 14:37:43 -0400
commitaf552596cfd7f6fd05dfc38abaaffad1d7fed654 (patch)
treecf8efb59ef25077f441f2a3ae8bf2ba40f252649 /web.go
parentb3f1ae1ba6144b25c937d7b6db085e6b902e74ab (diff)
downloadgitea-af552596cfd7f6fd05dfc38abaaffad1d7fed654.tar.gz
gitea-af552596cfd7f6fd05dfc38abaaffad1d7fed654.zip
Work on form resubmit
Diffstat (limited to 'web.go')
-rw-r--r--web.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/web.go b/web.go
index 1a9c292f3e..0f61bc2147 100644
--- a/web.go
+++ b/web.go
@@ -74,9 +74,12 @@ func runWeb(*cli.Context) {
ignSignIn := middleware.Toggle(&middleware.ToggleOptions{SignInRequire: base.Service.RequireSignInView})
reqSignOut := middleware.Toggle(&middleware.ToggleOptions{SignOutRequire: true})
+ bindIgnErr := binding.BindIgnErr
+
// Routers.
m.Get("/", ignSignIn, routers.Home)
- m.Any("/install", binding.BindIgnErr(auth.InstallForm{}), routers.Install)
+ m.Get("/install", bindIgnErr(auth.InstallForm{}), routers.InstallRouter.Get)
+ m.Post("/install", bindIgnErr(auth.InstallForm{}), routers.InstallRouter.Post)
m.Get("/issues", reqSignIn, user.Issues)
m.Get("/pulls", reqSignIn, user.Pulls)
m.Get("/stars", reqSignIn, user.Stars)