index
:
gogs.git
Gogs is a painless self-hosted Git service
log msg
author
committer
range
buildscript
main
mygogs
about
summary
refs
log
tree
commit
diff
path:
root
/
cmd
diff options
context:
1
2
3
4
5
6
7
8
9
10
15
20
25
30
35
40
space:
include
ignore
mode:
unified
ssdiff
stat only
Diffstat
(limited to 'cmd')
-rw-r--r--
cmd/web.go
3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd/web.go b/cmd/web.go
index cb634a0e..56759ce7 100644
--- a/
cmd/web.go
+++ b/
cmd/web.go
@@ -536,7 +536,8 @@ func runWeb(ctx *cli.Context) {
m.Get("/?:page", repo.Wiki)
m.Group("", func() {
- m.Get("/_new", repo.NewWiki)
+ m.Combo("/_new").Get(repo.NewWiki).
+ Post(bindIgnErr(auth.NewWikiForm{}), repo.NewWikiPost)
m.Get("/:page/_edit", repo.EditWiki)
}, reqSignIn)
}, middleware.RepoRef())