Move resources controller to API directory.