use relative urls for api access