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