forked from forgejo/forgejo
#334: Add Deployment Key Support
This commit is contained in:
parent
9f12ab0e88
commit
39a3b768bc
26 changed files with 693 additions and 149 deletions
|
@ -404,6 +404,13 @@ func runWeb(ctx *cli.Context) {
|
|||
m.Get("/:name", repo.GitHooksEdit)
|
||||
m.Post("/:name", repo.GitHooksEditPost)
|
||||
}, middleware.GitHookService())
|
||||
|
||||
m.Group("/keys", func() {
|
||||
m.Combo("").Get(repo.SettingsDeployKeys).
|
||||
Post(bindIgnErr(auth.AddSSHKeyForm{}), repo.SettingsDeployKeysPost)
|
||||
m.Post("/delete", repo.DeleteDeployKey)
|
||||
})
|
||||
|
||||
})
|
||||
}, reqSignIn, middleware.RepoAssignment(true), reqRepoAdmin)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue