use of io.jpom.common.RemoteVersion in project Jpom by dromara.
the class IndexController method info.
@RequestMapping(value = "info", method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_VALUE)
public String info() {
JpomManifest instance = JpomManifest.getInstance();
RemoteVersion remoteVersion = RemoteVersion.cacheInfo();
//
JSONObject jsonObject = new JSONObject();
jsonObject.put("manifest", instance);
jsonObject.put("remoteVersion", remoteVersion);
jsonObject.put("pluginSize", PluginFactory.size());
return JsonMessage.getString(200, "", jsonObject);
}
Aggregations