Use path parameter instead of query string.

This commit is contained in:
CalDescent 2022-09-17 13:50:04 +01:00
parent 02ac6dd8c1
commit 5017072f6c

View File

@ -115,7 +115,7 @@ public class ChatResource {
}
)
@ApiErrors({ApiError.INVALID_CRITERIA, ApiError.INVALID_ADDRESS, ApiError.REPOSITORY_ISSUE})
public ChatMessage getMessageBySignature(@QueryParam("signature") String signature58) {
public ChatMessage getMessageBySignature(@PathParam("signature") String signature58) {
byte[] signature = Base58.decode(signature58);
try (final Repository repository = RepositoryManager.getRepository()) {