Fixture handler needed an update after Gitea logic change

This commit is contained in:
Laszlo Fogas
2021-04-28 09:23:40 +02:00
parent 19659e7c93
commit 3357750e37

View File

@@ -96,8 +96,13 @@ func getUserRepos(c *gin.Context) {
case "token repos_not_found": case "token repos_not_found":
c.String(404, "") c.String(404, "")
default: default:
page := c.Query("page")
if page != "" && page != "1" {
c.String(200, "[]")
} else {
c.String(200, userRepoPayload) c.String(200, userRepoPayload)
} }
}
} }
func getVersion(c *gin.Context) { func getVersion(c *gin.Context) {