forked from NYANDEV/forgejo
Add undocumented endpoint for /repositories/:id
This commit is contained in:
parent
bea9d55da6
commit
71bb6df75a
2 changed files with 17 additions and 0 deletions
|
@ -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()).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue