aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick/server/www/controllers
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2019-12-20 17:49:24 +0300
committerGravatar Vitaly Takmazov2019-12-20 17:49:24 +0300
commit5f692eafbda6c7ce31bdd6af62c26f6c05249369 (patch)
tree860551900ab8b22f1f274d0250285d53e2d2879d /src/main/java/com/juick/server/www/controllers
parent4eba3366faa487de6cfc842aeff4a9b3b446f968 (diff)
Fix endpoint naming
Diffstat (limited to 'src/main/java/com/juick/server/www/controllers')
-rw-r--r--src/main/java/com/juick/server/www/controllers/SocialLogin.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/com/juick/server/www/controllers/SocialLogin.java b/src/main/java/com/juick/server/www/controllers/SocialLogin.java
index eb1e3cfe..ff17fb70 100644
--- a/src/main/java/com/juick/server/www/controllers/SocialLogin.java
+++ b/src/main/java/com/juick/server/www/controllers/SocialLogin.java
@@ -343,7 +343,7 @@ public class SocialLogin {
throw new HttpBadRequestException();
}
- @GetMapping("/_apple")
+ @GetMapping("/_applelogin")
public String doAppleLogin(HttpServletRequest request,
@RequestParam(required = false) String code,
HttpServletResponse response) {
@@ -355,7 +355,7 @@ public class SocialLogin {
}
throw new HttpBadRequestException();
}
- @PostMapping("/_apple")
+ @PostMapping("/_applelogin")
public String doVerifyAppleResponse(HttpServletRequest request, HttpServletResponse response, @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());