|
|
@@ -29,6 +29,8 @@ import com.alibaba.csp.sentinel.dashboard.rule.DynamicRuleProvider; |
|
|
|
import com.alibaba.csp.sentinel.dashboard.rule.DynamicRulePublisher; |
|
|
|
import com.alibaba.csp.sentinel.dashboard.domain.Result; |
|
|
|
|
|
|
|
import org.apache.commons.lang3.ObjectUtils; |
|
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
|
import org.slf4j.Logger; |
|
|
|
import org.slf4j.LoggerFactory; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
@@ -71,6 +73,9 @@ public class FlowControllerV2 { |
|
|
|
@AuthAction(PrivilegeType.READ_RULE) |
|
|
|
public Result<List<FlowRuleEntity>> apiQueryMachineRules(@RequestParam String app) { |
|
|
|
System.out.println("FlowControllerV2 apiQueryMachineRules app is " + app); |
|
|
|
if (StringUtils.isBlank(app)) { |
|
|
|
app="sentinel-dashboard"; |
|
|
|
} |
|
|
|
if (StringUtil.isEmpty(app)) { |
|
|
|
return Result.ofFail(-1, "app can't be null or empty"); |
|
|
|
} |
|
|
|