Control Flow of Strapi Admin Panel

Thank you for Helping.

I just override the controller function of strapi-plugin-content-manager in nodeModules by adding the content-manager/controllers/collection-types.js in extension folder.

In which i override the update function but i want to override the controller function for certain routes or collection types. Unless the default function will work.
Can you tell me how to do that?