Not sure I like this. Since this is the only endpoint ever used in this file, it makes more sense to me to just pass the full URL. That way, if the server ever changes, no update to the client is needed. Even if this client is meant to be used with our server, I'm just not a big fan of hard coding that endpoint as it creates coupling between the client and server.