package de.otto.edison.togglz;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
@Controller
public class FeatureTestController {
@RequestMapping(value = "/featurestate/test",method = RequestMethod.GET)
@ResponseBody
public String getFeatureState() {
if (TestFeatures.TEST_FEATURE.isActive()) {
return "feature is active";
} else {
return "feature is inactive";
}
}
}