difference between controller and api controller