summaryrefslogtreecommitdiffstats
path: root/cmd/web.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2016-08-15 18:40:32 -0700
committerUnknwon <u@gogs.io>2016-08-15 18:40:32 -0700
commit4042d1f0c3c545773f81e2ca1b4eb8662bc4c425 (patch)
tree9bbbb404c9ee719f10e379cfc9699fddeaa94c0a /cmd/web.go
parent4a46613916cdfa6a168746aba6abcd698cd17875 (diff)
downloadgitea-4042d1f0c3c545773f81e2ca1b4eb8662bc4c425.tar.gz
gitea-4042d1f0c3c545773f81e2ca1b4eb8662bc4c425.zip
models/issue: improve quality and performance of NewIssue function
Diffstat (limited to 'cmd/web.go')
-rw-r--r--cmd/web.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/cmd/web.go b/cmd/web.go
index cdf42657c8..b581f95836 100644
--- a/cmd/web.go
+++ b/cmd/web.go
@@ -504,10 +504,9 @@ func runWeb(ctx *cli.Context) error {
m.Combo("/_new/*").Get(repo.NewFile).
Post(bindIgnErr(auth.EditRepoFileForm{}), repo.NewFilePost)
m.Post("/_preview/*", bindIgnErr(auth.EditPreviewDiffForm{}), repo.DiffPreviewPost)
- m.Combo("/upload/*").Get(repo.UploadFile).
+ m.Combo("/_upload/*").Get(repo.UploadFile).
Post(bindIgnErr(auth.UploadRepoFileForm{}), repo.UploadFilePost)
m.Post("/_delete/*", bindIgnErr(auth.DeleteRepoFileForm{}), repo.DeleteFilePost)
- m.Post("/branches", bindIgnErr(auth.NewBranchForm{}), repo.NewBranchPost)
// m.Post("/upload-file", repo.UploadFileToServer)
// m.Post("/upload-remove", bindIgnErr(auth.RemoveUploadFileForm{}), repo.RemoveUploadFileFromServer)
}, reqRepoWriter, context.RepoRef(), func(ctx *context.Context) {