mirror of
https://github.com/go-gitea/gitea
synced 2025-07-15 23:17:19 +00:00
Add language statistics API endpoint (#11737)
* Add language statistics API * Add tests
This commit is contained in:
@@ -855,6 +855,7 @@ func RegisterRoutes(m *macaron.Macaron) {
|
||||
Delete(reqToken(), repo.DeleteTopic)
|
||||
}, reqAdmin())
|
||||
}, reqAnyRepoReader())
|
||||
m.Get("/languages", reqRepoReader(models.UnitTypeCode), repo.GetLanguages)
|
||||
}, repoAssignment())
|
||||
})
|
||||
|
||||
|
Reference in New Issue
Block a user