From 39a3b768bc8b0288cb4aa91d27485f46cfbfeb29 Mon Sep 17 00:00:00 2001 From: Unknwon <u@gogs.io> Date: Thu, 6 Aug 2015 22:48:11 +0800 Subject: #334: Add Deployment Key Support --- cmd/web.go | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'cmd/web.go') diff --git a/cmd/web.go b/cmd/web.go index 49e8446c15..27e50cd2df 100644 --- a/cmd/web.go +++ b/cmd/web.go @@ -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) -- cgit v1.2.3