From 09f2cbfb183f5ff3003ed93fb97bd2f9a69c24d7 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Thu, 8 Jun 2017 15:53:19 -0400 Subject: api/repo: response full API format for search results (#4522) --- routers/api/v1/repo/repo.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'routers/api/v1/repo/repo.go') diff --git a/routers/api/v1/repo/repo.go b/routers/api/v1/repo/repo.go index b4be4247..bb1832ea 100644 --- a/routers/api/v1/repo/repo.go +++ b/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) -- cgit v1.2.3