diff options
author | Vitaly Takmazov | 2019-12-23 12:42:29 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2019-12-23 12:42:29 +0300 |
commit | 30af278d4fdd579662163eb5d9210d8b363b7b59 (patch) | |
tree | 56c227af5285e0f444e71fc025990224907a7273 /src/main/java/com/juick/server/api | |
parent | 5f692eafbda6c7ce31bdd6af62c26f6c05249369 (diff) |
Fix naming again
Diffstat (limited to 'src/main/java/com/juick/server/api')
-rw-r--r-- | src/main/java/com/juick/server/api/ApiSocialLogin.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/com/juick/server/api/ApiSocialLogin.java b/src/main/java/com/juick/server/api/ApiSocialLogin.java index a2b80932..6253bc1b 100644 --- a/src/main/java/com/juick/server/api/ApiSocialLogin.java +++ b/src/main/java/com/juick/server/api/ApiSocialLogin.java @@ -285,7 +285,7 @@ public class ApiSocialLogin { return ResponseEntity.status(HttpStatus.FORBIDDEN).body(null); } } - @GetMapping("/api/_apple") + @GetMapping("/api/_applelogin") public String doAppleLogin(@RequestParam(required = false) String code, @RequestParam String state) { if (StringUtils.isBlank(code)) { String astate = UUID.randomUUID().toString(); @@ -294,7 +294,7 @@ public class ApiSocialLogin { } throw new HttpBadRequestException(); } - @PostMapping("/api/_apple") + @PostMapping("/api/_applelogin") public String doVerifyAppleResponse(@RequestParam Map<String, String> body) throws InterruptedException, ExecutionException, IOException, ParseException, JOSEException, BadJOSEException { OAuth2AccessToken token = appleSignInService.getAccessToken(body.get("code")); var jsonNode = jsonMapper.readTree(token.getRawResponse()); |