summaryrefslogtreecommitdiffstats
path: root/web.go
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-04-11 19:44:13 -0400
committerUnknown <joe2010xtmf@163.com>2014-04-11 19:44:13 -0400
commit47aa53bd369014b0788f18a605e7347801f6c31d (patch)
treed24e083ed102c457854e00e13e3e767d71a272c1 /web.go
parent7d07b58114199f682a9caa059f239e24c820dc41 (diff)
downloadgitea-47aa53bd369014b0788f18a605e7347801f6c31d.tar.gz
gitea-47aa53bd369014b0788f18a605e7347801f6c31d.zip
Add search commits
Diffstat (limited to 'web.go')
-rw-r--r--web.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/web.go b/web.go
index b2be73d677..ecc824d391 100644
--- a/web.go
+++ b/web.go
@@ -164,6 +164,7 @@ func runWeb(*cli.Context) {
r.Post("/issues/new", bindIgnErr(auth.CreateIssueForm{}), repo.CreateIssuePost)
r.Post("/issues/:index", bindIgnErr(auth.CreateIssueForm{}), repo.UpdateIssue)
r.Post("/comment/:action", repo.Comment)
+ r.Post("/import", repo.Import)
}, reqSignIn, middleware.RepoAssignment(true))
m.Group("/:username/:reponame", func(r martini.Router) {
@@ -180,6 +181,7 @@ func runWeb(*cli.Context) {
r.Get("/src/:branchname/**", repo.Single)
r.Get("/raw/:branchname/**", repo.SingleDownload)
r.Get("/commits/:branchname", repo.Commits)
+ r.Get("/commits/:branchname/search", repo.SearchCommits)
r.Get("/commit/:branchname", repo.Diff)
r.Get("/commit/:branchname/**", repo.Diff)
}, ignSignIn, middleware.RepoAssignment(true, true))