mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-31 11:52:10 +00:00
Merge branch 'dev' of github.com:gogits/gogs into dev
This commit is contained in:
commit
f8e97b75fb
16 changed files with 222 additions and 40 deletions
2
web.go
2
web.go
|
@ -152,6 +152,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) {
|
||||
|
@ -168,6 +169,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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue