MCPcopy Index your code
hub / github.com/TruthHun/BookStack / LatestVersion

Method LatestVersion

controllers/api/CommonController.go:1190–1194  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1188}
1189
1190func (this *CommonController) LatestVersion() {
1191 version, _ := strconv.Atoi(models.GetOptionValue("APP_VERSION", "0"))
1192 page := models.GetOptionValue("APP_PAGE", "")
1193 this.Response(http.StatusOK, messageSuccess, map[string]interface{}{"version": version, "url": page})
1194}
1195
1196func (this *CommonController) Rank() {
1197 limit, _ := this.GetInt("limit", 50)

Callers

nothing calls this directly

Calls 2

GetOptionValueFunction · 0.92
ResponseMethod · 0.80

Tested by

no test coverage detected