aboutsummaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-11-27 01:50:38 -0500
committerUnknwon <u@gogs.io>2015-11-27 01:50:38 -0500
commite42fcb033d4a7ee44fe397be3e933d7031b7d8f7 (patch)
treea203fff39c92f947c4585a746e2345b3ebc67b3c /cmd
parent392f3ee21016476fb9794f78882d6c447acb8449 (diff)
downloadgitea-e42fcb033d4a7ee44fe397be3e933d7031b7d8f7.tar.gz
gitea-e42fcb033d4a7ee44fe397be3e933d7031b7d8f7.zip
wiki: finish edit
Diffstat (limited to 'cmd')
-rw-r--r--cmd/web.go8
1 files changed, 5 insertions, 3 deletions
diff --git a/cmd/web.go b/cmd/web.go
index 5baeffccd5..07fceae404 100644
--- a/cmd/web.go
+++ b/cmd/web.go
@@ -378,6 +378,7 @@ func runWeb(ctx *cli.Context) {
}
reqRepoAdmin := middleware.RequireRepoAdmin()
+ reqRepoPusher := middleware.RequireRepoPusher()
// ***** START: Organization *****
m.Group("/org", func() {
@@ -534,13 +535,14 @@ func runWeb(ctx *cli.Context) {
m.Group("/wiki", func() {
m.Get("/?:page", repo.Wiki)
- m.Get("/_list", repo.WikiList)
+ m.Get("/_pages", repo.WikiPages)
m.Group("", func() {
m.Combo("/_new").Get(repo.NewWiki).
Post(bindIgnErr(auth.NewWikiForm{}), repo.NewWikiPost)
- m.Get("/:page/_edit", repo.EditWiki)
- }, reqSignIn)
+ m.Combo("/:page/_edit").Get(repo.EditWiki).
+ Post(bindIgnErr(auth.NewWikiForm{}), repo.EditWikiPost)
+ }, reqSignIn, reqRepoPusher)
}, middleware.RepoRef())
m.Get("/archive/*", repo.Download)