Rest API - HTTP Methods
What is wrong with this GET request code snippet in JavaScript?
fetch('/users/abc')
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error(error));
Assuming user IDs are numeric.