adding dependency injection to controller route