Moved endpoints to API package.
Rename.