Skip to content

Commit

Permalink
test : CI Test
Browse files Browse the repository at this point in the history
  • Loading branch information
softmoca committed Jun 25, 2024
1 parent 1559805 commit 34a122c
Showing 1 changed file with 23 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
package sopt.univoice.setting.controller;

import lombok.RequiredArgsConstructor;
import org.springframework.core.env.Environment;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Arrays;

@RestController
@RequiredArgsConstructor
public class ProfileController {

private final Environment env;
private static final String NULL = "";

@GetMapping("/profile")
public String getProfile() {
return Arrays.stream(env.getActiveProfiles())
.findFirst()
.orElse(NULL);
}
}

0 comments on commit 34a122c

Please sign in to comment.