Developers who add the trailing slash to the base URL for API calls are evil. I can't be the only one who thinks that this is the only way. ❌ `${baseUrl}users ✅ `${baseUrl}/users`
1 repost9 likes
Developers who add the trailing slash to the base URL for API calls are evil. I can't be the only one who thinks that this is the only way. ❌ `${baseUrl}users ✅ `${baseUrl}/users`
1 repost9 likes
Unfortunately not - it's valid for http paths to have empty segments, and web servers may choose to treat example.com/a//b differently to example.com/a/b . But most don't bother and will quietly normalise.