inject controller into api route for base model api routes