Fixing endpoint issue being hardcoded.

Signed-off-by: Ronald Huereca <ronalfy@gmail.com>