Moved REST api endpoints into api subdir