Moved controllers and views to api folder