diff options
author | Josh Frye <joshfng@gmail.com> | 2016-03-03 17:06:50 -0500 |
---|---|---|
committer | Josh Frye <joshfng@gmail.com> | 2016-03-04 09:26:52 -0500 |
commit | 1ca171dbe9a06d9c269b90b442fda63e36a418a8 (patch) | |
tree | e36e705885918d60a34318c86b2fa31ada27a3e7 /cmd | |
parent | f6759a731a063d5d2be8a932f8d1e1a784cc0528 (diff) | |
download | gitea-1ca171dbe9a06d9c269b90b442fda63e36a418a8.tar.gz gitea-1ca171dbe9a06d9c269b90b442fda63e36a418a8.zip |
Add ability to delete single wiki pages.
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/web.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/web.go b/cmd/web.go index 4f49cadcd6..8b7134adb0 100644 --- a/cmd/web.go +++ b/cmd/web.go @@ -495,6 +495,7 @@ func runWeb(ctx *cli.Context) { Post(bindIgnErr(auth.NewWikiForm{}), repo.NewWikiPost) m.Combo("/:page/_edit").Get(repo.EditWiki). Post(bindIgnErr(auth.NewWikiForm{}), repo.EditWikiPost) + m.Post("/:page", bindIgnErr(auth.NewWikiForm{}), repo.DeleteWikiPagePost) }, reqSignIn, reqRepoPusher) }, repo.MustEnableWiki, middleware.RepoRef()) |