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

This commit is contained in:
Unknwon
2017-06-08 15:53:19 -04:00
parent 88791089ed
commit 09f2cbfb18
3 changed files with 3 additions and 6 deletions

View File

@@ -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)