litmus-proxy module
Signed-off-by: chandresh pancholi <chandresh.pancholi@navi.com>
This commit is contained in:
@@ -5,6 +5,7 @@ import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.log4j.Log4j2;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
@RestController
|
||||
@@ -15,8 +16,8 @@ public class MockController {
|
||||
private final Litmus litmus;
|
||||
|
||||
@GetMapping("/mock")
|
||||
public String test() {
|
||||
var result = litmus.isEnabled("test-offer");
|
||||
public String test(@RequestParam("experiment") String experiment) {
|
||||
var result = litmus.isEnabled(experiment);
|
||||
log.info("result ----> {}", result);
|
||||
|
||||
return "result ==> " + result;
|
||||
|
||||
Reference in New Issue
Block a user