removed seperate router for /repos/search
This commit is contained in:
parent
a89d6253e0
commit
8a5925b9bd
|
@ -368,13 +368,11 @@ func RegisterRoutes(m *macaron.Macaron) {
|
||||||
// Repositories
|
// Repositories
|
||||||
m.Post("/org/:org/repos", reqToken(), bind(api.CreateRepoOption{}), repo.CreateOrgRepo)
|
m.Post("/org/:org/repos", reqToken(), bind(api.CreateRepoOption{}), repo.CreateOrgRepo)
|
||||||
|
|
||||||
m.Group("/repos", func() {
|
|
||||||
m.Get("/search", repo.Search)
|
|
||||||
})
|
|
||||||
|
|
||||||
m.Combo("/repositories/:id", reqToken()).Get(repo.GetByID)
|
m.Combo("/repositories/:id", reqToken()).Get(repo.GetByID)
|
||||||
|
|
||||||
m.Group("/repos", func() {
|
m.Group("/repos", func() {
|
||||||
|
m.Get("/search", repo.Search)
|
||||||
|
|
||||||
m.Post("/migrate", reqToken(), bind(auth.MigrateRepoForm{}), repo.Migrate)
|
m.Post("/migrate", reqToken(), bind(auth.MigrateRepoForm{}), repo.Migrate)
|
||||||
|
|
||||||
m.Group("/:username/:reponame", func() {
|
m.Group("/:username/:reponame", func() {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user