aboutsummaryrefslogtreecommitdiff
path: root/routers/api/v1/repo/repo.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2017-06-08 15:53:19 -0400
committerUnknwon <u@gogs.io>2017-06-08 15:53:19 -0400
commit09f2cbfb183f5ff3003ed93fb97bd2f9a69c24d7 (patch)
treedeace0ca93e865b56300784de0df1f3bc40d51ae /routers/api/v1/repo/repo.go
parent88791089ed9b8c163f256f953b192488c36a9f88 (diff)
api/repo: response full API format for search results (#4522)
Diffstat (limited to 'routers/api/v1/repo/repo.go')
-rw-r--r--routers/api/v1/repo/repo.go5
1 files changed, 1 insertions, 4 deletions
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)