mirror of
https://github.com/gogs/gogs.git
synced 2025-12-20 15:20:01 +01:00
api/repo: response full API format for search results (#4522)
This commit is contained in:
2
gogs.go
2
gogs.go
@@ -16,7 +16,7 @@ import (
|
|||||||
"github.com/gogits/gogs/pkg/setting"
|
"github.com/gogits/gogs/pkg/setting"
|
||||||
)
|
)
|
||||||
|
|
||||||
const APP_VER = "0.11.17.0607"
|
const APP_VER = "0.11.18.0608"
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
setting.AppVer = APP_VER
|
setting.AppVer = APP_VER
|
||||||
|
|||||||
@@ -65,10 +65,7 @@ func Search(c *context.APIContext) {
|
|||||||
})
|
})
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
results[i] = &api.Repository{
|
results[i] = repos[i].APIFormat(nil)
|
||||||
ID: repos[i].ID,
|
|
||||||
FullName: path.Join(repos[i].Owner.Name, repos[i].Name),
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
c.SetLinkHeader(int(count), setting.API.MaxResponseItems)
|
c.SetLinkHeader(int(count), setting.API.MaxResponseItems)
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
0.11.17.0607
|
0.11.18.0608
|
||||||
Reference in New Issue
Block a user