Add api function to controller
WORKS