mirror of
https://github.com/go-gitea/gitea.git
synced 2025-08-10 18:53:58 +09:00
Add undocumented endpoint for /repositories/:id
This commit is contained in:
@ -243,6 +243,8 @@ func RegisterRoutes(m *macaron.Macaron) {
|
||||
m.Get("/search", repo.Search)
|
||||
})
|
||||
|
||||
m.Combo("/repositories/:id", reqToken()).Get(repo.GetByID)
|
||||
|
||||
m.Group("/repos", func() {
|
||||
m.Post("/migrate", bind(auth.MigrateRepoForm{}), repo.Migrate)
|
||||
m.Combo("/:username/:reponame", context.ExtractOwnerAndRepo()).
|
||||
|
Reference in New Issue
Block a user