According to this question, my method should be sending a JSON object via Jackson:
Returning JSON object as response in Spring Boot
But I am receiving a string at the client.
Here's the relevant parts:
@CrossOrigin(origins = "*")
@RestController
public class AuthController {
@PostMapping("/api/signup")
public String signup(HttpServletRequest request, HttpServletResponse response){
return "{'status':'fail', 'message':'foo'}";
}
}