mirror of
https://github.com/Stirling-Tools/Stirling-PDF.git
synced 2025-08-06 04:25:22 +00:00
autowired false
This commit is contained in:
parent
30461cd91e
commit
adcebbf3cb
@ -9,6 +9,7 @@ import java.nio.file.Paths;
|
|||||||
import java.util.*;
|
import java.util.*;
|
||||||
import java.util.stream.Stream;
|
import java.util.stream.Stream;
|
||||||
|
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.core.io.ClassPathResource;
|
import org.springframework.core.io.ClassPathResource;
|
||||||
import org.springframework.core.io.Resource;
|
import org.springframework.core.io.Resource;
|
||||||
import org.springframework.core.io.ResourceLoader;
|
import org.springframework.core.io.ResourceLoader;
|
||||||
@ -41,7 +42,6 @@ import stirling.software.common.util.GeneralUtils;
|
|||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/api/v1/ui-data")
|
@RequestMapping("/api/v1/ui-data")
|
||||||
@Tag(name = "UI Data", description = "APIs for React UI data")
|
@Tag(name = "UI Data", description = "APIs for React UI data")
|
||||||
@RequiredArgsConstructor
|
|
||||||
public class UIDataController {
|
public class UIDataController {
|
||||||
|
|
||||||
private final ApplicationProperties applicationProperties;
|
private final ApplicationProperties applicationProperties;
|
||||||
@ -50,6 +50,19 @@ public class UIDataController {
|
|||||||
private final ResourceLoader resourceLoader;
|
private final ResourceLoader resourceLoader;
|
||||||
private final RuntimePathConfig runtimePathConfig;
|
private final RuntimePathConfig runtimePathConfig;
|
||||||
|
|
||||||
|
public UIDataController(
|
||||||
|
ApplicationProperties applicationProperties,
|
||||||
|
SignatureService signatureService,
|
||||||
|
@Autowired(required = false) UserServiceInterface userService,
|
||||||
|
ResourceLoader resourceLoader,
|
||||||
|
RuntimePathConfig runtimePathConfig) {
|
||||||
|
this.applicationProperties = applicationProperties;
|
||||||
|
this.signatureService = signatureService;
|
||||||
|
this.userService = userService;
|
||||||
|
this.resourceLoader = resourceLoader;
|
||||||
|
this.runtimePathConfig = runtimePathConfig;
|
||||||
|
}
|
||||||
|
|
||||||
@GetMapping("/home")
|
@GetMapping("/home")
|
||||||
@Operation(summary = "Get home page data")
|
@Operation(summary = "Get home page data")
|
||||||
public ResponseEntity<HomeData> getHomeData() {
|
public ResponseEntity<HomeData> getHomeData() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user