aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/web.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/web.go')
-rw-r--r--cmd/web.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/web.go b/cmd/web.go
index 4f2eb26be6..bc8bb74efe 100644
--- a/cmd/web.go
+++ b/cmd/web.go
@@ -330,8 +330,8 @@ func runWeb(ctx *cli.Context) {
m.Get("", admin.Authentications)
m.Get("/new", admin.NewAuthSource)
m.Post("/new", bindIgnErr(auth.AuthenticationForm{}), admin.NewAuthSourcePost)
- m.Get("/:authid", admin.EditAuthSource)
- m.Post("/:authid", bindIgnErr(auth.AuthenticationForm{}), admin.EditAuthSourcePost)
+ m.Combo("/:authid").Get(admin.EditAuthSource).
+ Post(bindIgnErr(auth.AuthenticationForm{}), admin.EditAuthSourcePost)
m.Post("/:authid/delete", admin.DeleteAuthSource)
})