How can I pass parameters to my custom API controller in Strapi v4?

hi do i need to create plugin for custom Api, when i do this in strapi 4 i get errors.