From 121a81a2c554b2de0de89ab7749fe691b5d1aba7 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Fri, 11 Sep 2015 12:03:08 -0400 Subject: finish new edit auth UI --- cmd/web.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cmd/web.go') 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) }) -- cgit v1.2.3