Skip to content

Commit 5e0c24a

Browse files
authored
Fix: Correct API endpoint mismatch in CredentialController (#50)
1 parent f66f30c commit 5e0c24a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rpserver/src/main/java/com/linecorp/line/auth/fido/fido2/rpserver/controller/CredentialController.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public GetCredentialResult getCredentialWithCredentialId(
8181
@PathVariable("id") String credentialId) {
8282

8383
UriComponentsBuilder uriComponentsBuilder = UriComponentsBuilder.fromUriString(getDeleteCredentialsUri);
84-
URI uri = uriComponentsBuilder.path(credentialId)
84+
URI uri = uriComponentsBuilder.pathSegment(credentialId)
8585
.queryParam("rpId", rpId)
8686
.build().toUri();
8787

@@ -112,7 +112,7 @@ public BaseResponse deleteCredentialWithCredentialId(
112112
@PathVariable("id") String credentialId) {
113113

114114
UriComponentsBuilder uriComponentsBuilder = UriComponentsBuilder.fromUriString(getDeleteCredentialsUri);
115-
URI uri = uriComponentsBuilder.path(credentialId)
115+
URI uri = uriComponentsBuilder.pathSegment(credentialId)
116116
.queryParam("rpId", rpId)
117117
.build().toUri();
118118

0 commit comments

Comments
 (0)