renaming endpoint 'url', moving constants off the class