aboutsummaryrefslogtreecommitdiff
path: root/routers/api/v1/repo/repo.go
diff options
context:
space:
mode:
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)