From 47aa53bd369014b0788f18a605e7347801f6c31d Mon Sep 17 00:00:00 2001 From: Unknown Date: Fri, 11 Apr 2014 19:44:13 -0400 Subject: Add search commits --- web.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'web.go') diff --git a/web.go b/web.go index b2be73d6..ecc824d3 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)) -- cgit v1.2.3