mirror of
https://github.com/gogs/gogs.git
synced 2026-05-07 13:25:56 +02:00
api/repo: response full API format for search results (#4522)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user