add api directory in controllers