feat(ft546): add isolated shadow process
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
package com.ruoyi.shadow.web;
|
||||
|
||||
import com.ruoyi.shadow.startup.ShadowStartupReport;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/shadow")
|
||||
public final class ShadowStatusController {
|
||||
private final ShadowStartupReport report;
|
||||
|
||||
public ShadowStatusController(ShadowStartupReport report) {
|
||||
this.report = report;
|
||||
}
|
||||
|
||||
@GetMapping("/status")
|
||||
public ShadowStartupReport status() {
|
||||
return report;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user