Skip to content

Commit

Permalink
#42 [Fix] Nginx - Health Test
Browse files Browse the repository at this point in the history
  • Loading branch information
JSoi committed Jul 26, 2022
1 parent fe297a4 commit 42a0847
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/main/java/com/mpnp/baechelin/util/Nginx.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,6 @@ public class Nginx {

@GetMapping("/health")
public String main() {
final List<String> profiles = Arrays.asList(environment.getActiveProfiles());
final List<String> prodProfiles = Arrays.asList("prod1", "prod2");
final String defaultProfile = profiles.get(0);

return Arrays.stream(environment.getActiveProfiles())
.filter(prodProfiles::contains)
.findAny()
.orElse(defaultProfile);
return "Health UP";
}
}

0 comments on commit 42a0847

Please sign in to comment.