relative url for endpoint in frontend