feat(runner): create new token for creating new runner

This commit is contained in:
fuxiaohei
2022-10-17 21:21:43 +08:00
committed by Jason Song
parent 243c1e5134
commit f633ec9704
7 changed files with 128 additions and 21 deletions

View File

@ -627,6 +627,7 @@ func RegisterRoutes(m *web.Route) {
m.Group("/runners", func() {
m.Get("", admin.Runners)
m.Get("/reset_registration_token", admin.ResetRunnerRegistrationToken)
m.Combo("/{runnerid}").Get(admin.EditRunner).Post(bindIgnErr(forms.AdminEditRunnerForm{}), admin.EditRunnerPost)
m.Post("/{runnerid}/delete", admin.DeleteRunnerPost)
})