Merge pull request #9927 from dataease/dev-v2-plugin

Dev v2 plugin
This commit is contained in:
fit2cloud-chenyw
2024-05-28 20:37:29 +08:00
committed by GitHub
6 changed files with 62 additions and 4 deletions

View File

@@ -2,6 +2,7 @@ package io.dataease.home;
import io.dataease.utils.ModelUtils;
import io.dataease.utils.RsaUtils;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
@@ -11,6 +12,9 @@ import org.springframework.web.bind.annotation.RestController;
@RequestMapping
public class RestIndexController {
@Value("${dataease.xpack-front-distributed:false}")
private boolean xpackFrontDistributed;
@GetMapping("/dekey")
@ResponseBody
public String dekey() {
@@ -23,4 +27,11 @@ public class RestIndexController {
return ModelUtils.isDesktop();
}
@GetMapping("/xpackModel")
@ResponseBody
public boolean xpackModel() {
return xpackFrontDistributed;
}
}