moved api back into controller until I get things using  instead of shred/swagger