mirror of
https://github.com/dataease/dataease.git
synced 2026-05-24 06:18:10 +08:00
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user