Browse Source

api/repo: response full API format for search results (#4522)

pull/4126/merge
Unknwon 8 years ago
parent
commit
09f2cbfb18
No known key found for this signature in database
GPG Key ID: 7A02C406FAC875A2
  1. 2
      gogs.go
  2. 5
      routers/api/v1/repo/repo.go
  3. 2
      templates/.VERSION

2
gogs.go

@ -16,7 +16,7 @@ import (
"github.com/gogits/gogs/pkg/setting"
)
const APP_VER = "0.11.17.0607"
const APP_VER = "0.11.18.0608"
func init() {
setting.AppVer = APP_VER

5
routers/api/v1/repo/repo.go

@ -65,10 +65,7 @@ func Search(c *context.APIContext) {
})
return
}
results[i] = &api.Repository{
ID: repos[i].ID,
FullName: path.Join(repos[i].Owner.Name, repos[i].Name),
}
results[i] = repos[i].APIFormat(nil)
}
c.SetLinkHeader(int(count), setting.API.MaxResponseItems)

2
templates/.VERSION

@ -1 +1 @@
0.11.17.0607
0.11.18.0608
Loading…
Cancel
Save