Skip to content

Commit

Permalink
Add hidden resource handling in PicsureInfoService
Browse files Browse the repository at this point in the history
This change modifies the PicsureInfoService to include resources flagged as hidden when listing available resources. This adjustment allows for a more comprehensive list of resources to be generated, including those designated as hidden, optimizing resource management.
  • Loading branch information
Gcolon021 committed Mar 8, 2024
1 parent 52da03d commit 2e9e805
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public Map<UUID, String> resources(HttpHeaders headers) {
return resourceRepo.list().stream()
.filter(
resource -> resource.getResourceRSPath().contains("." + JAXRSConfiguration.application_stack + ".")
|| resource.getResourceRSPath().contains("localhost")
|| resource.getResourceRSPath().contains("localhost") || resource.getHidden()
).collect(Collectors.toMap(Resource::getUuid, Resource::getName));
}

Expand Down

0 comments on commit 2e9e805

Please sign in to comment.