@ -8,6 +8,7 @@ import com.plannaplan.security.cas.CustomUAMCasValidator;
|
||||
import com.plannaplan.services.UserService;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.http.HttpStatus;
|
||||
import org.springframework.http.ResponseEntity;
|
||||
import org.springframework.web.bind.annotation.CrossOrigin;
|
||||
@ -24,7 +25,8 @@ import io.swagger.annotations.ApiParam;
|
||||
@Api(tags = { "Token" }, value = "Token", description = "Enpoints to get authorization.")
|
||||
public class TokenController {
|
||||
|
||||
private final static String SERVICE_URL = "https://wmi.plannaplan.pl";
|
||||
@Value("${plannaplan.frontendUrl}")
|
||||
private String SERVICE_URL;
|
||||
|
||||
@Autowired
|
||||
private UserService userService;
|
||||
|
Reference in New Issue
Block a user