Change wrong url (setInput to addFriend) on Client userService
This commit is contained in:
@@ -99,7 +99,7 @@ public class UserService {
|
|||||||
public String addFriend(String name, String friend) {
|
public String addFriend(String name, String friend) {
|
||||||
HttpHeaders headers = new HttpHeaders();
|
HttpHeaders headers = new HttpHeaders();
|
||||||
headers.set("Accept", MediaType.APPLICATION_JSON_VALUE);
|
headers.set("Accept", MediaType.APPLICATION_JSON_VALUE);
|
||||||
UriComponentsBuilder builder = UriComponentsBuilder.fromHttpUrl("http://localhost:8080/setInput")
|
UriComponentsBuilder builder = UriComponentsBuilder.fromHttpUrl("http://localhost:8080/addFriend")
|
||||||
.queryParam("name", name)
|
.queryParam("name", name)
|
||||||
.queryParam("friend",friend);
|
.queryParam("friend",friend);
|
||||||
HttpEntity<?> entity = new HttpEntity<>(headers);
|
HttpEntity<?> entity = new HttpEntity<>(headers);
|
||||||
|
|||||||
Reference in New Issue
Block a user