The main site constructs the API address from the current server ip