Refactored folders to logically separate api and html