adds controller for apis