Search in sources :

Example 1 with RemoteVersion

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);
}
Also used : JSONObject(com.alibaba.fastjson.JSONObject) JpomManifest(io.jpom.common.JpomManifest) RemoteVersion(io.jpom.common.RemoteVersion) RequestMapping(org.springframework.web.bind.annotation.RequestMapping)

Aggregations

JSONObject (com.alibaba.fastjson.JSONObject)1 JpomManifest (io.jpom.common.JpomManifest)1 RemoteVersion (io.jpom.common.RemoteVersion)1 RequestMapping (org.springframework.web.bind.annotation.RequestMapping)1