public directory is renamed to api