diff --git a/app/core/src/main/java/stirling/software/SPDF/controller/api/UIDataController.java b/app/core/src/main/java/stirling/software/SPDF/controller/api/UIDataController.java index f5b1a70f1..3161560ae 100644 --- a/app/core/src/main/java/stirling/software/SPDF/controller/api/UIDataController.java +++ b/app/core/src/main/java/stirling/software/SPDF/controller/api/UIDataController.java @@ -9,6 +9,7 @@ import java.nio.file.Paths; import java.util.*; import java.util.stream.Stream; +import org.springframework.beans.factory.annotation.Autowired; import org.springframework.core.io.ClassPathResource; import org.springframework.core.io.Resource; import org.springframework.core.io.ResourceLoader; @@ -41,7 +42,6 @@ import stirling.software.common.util.GeneralUtils; @RestController @RequestMapping("/api/v1/ui-data") @Tag(name = "UI Data", description = "APIs for React UI data") -@RequiredArgsConstructor public class UIDataController { private final ApplicationProperties applicationProperties; @@ -50,6 +50,19 @@ public class UIDataController { private final ResourceLoader resourceLoader; 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") @Operation(summary = "Get home page data") public ResponseEntity getHomeData() {