|
@@ -7,7 +7,9 @@ import com.qmth.boot.api.constant.ApiConstant;
|
|
|
import com.qmth.boot.core.enums.Platform;
|
|
|
import com.qmth.boot.core.security.config.SecurityProperties;
|
|
|
import com.qmth.boot.core.uid.service.UidService;
|
|
|
+import com.qmth.boot.fss.service.FileService;
|
|
|
import org.apache.commons.lang3.RandomUtils;
|
|
|
+import org.springframework.web.bind.annotation.PathVariable;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
@@ -28,6 +30,9 @@ public class IndexController {
|
|
|
@Resource
|
|
|
private SecurityProperties securityProperties;
|
|
|
|
|
|
+ @Resource
|
|
|
+ private FileService fileService;
|
|
|
+
|
|
|
@RequestMapping("/strict")
|
|
|
@Aac(strict = BOOL.TRUE)
|
|
|
public Object strict() {
|
|
@@ -62,6 +67,11 @@ public class IndexController {
|
|
|
return securityProperties;
|
|
|
}
|
|
|
|
|
|
+ @RequestMapping("/fss/{endpoint}")
|
|
|
+ public Object fss(@PathVariable String endpoint) {
|
|
|
+ return fileService.getFileStore(endpoint);
|
|
|
+ }
|
|
|
+
|
|
|
@RequestMapping("/uid")
|
|
|
public Object getUid() {
|
|
|
return uidService.getId();
|