Use app instead of controller