feat(runner): delete runner from admin html page

This commit is contained in:
fuxiaohei
2022-10-12 20:57:40 +08:00
committed by Jason Song
parent 5b989e2a11
commit fbb9f437a6
6 changed files with 58 additions and 24 deletions

View File

@@ -629,7 +629,7 @@ func RegisterRoutes(m *web.Route) {
m.Group("/runners", func() {
m.Get("", admin.Runners)
m.Combo("/{runnerid}").Get(admin.EditRunner).Post(bindIgnErr(forms.AdminEditRunnerForm{}), admin.EditRunnerPost)
m.Post("/{runnerid}/delete", admin.DeleteRunner)
m.Post("/{runnerid}/delete", admin.DeleteRunnerPost)
})
}, func(ctx *context.Context) {
ctx.Data["EnableOAuth2"] = setting.OAuth2.Enable