changed api endpoints from relative to absolute url