move main endpoint to public folder