Add controller for "plugin::users-permissions.user" [strapi v4]

System Information
  • Strapi Version: 4.0.2
  • Operating System: Ubuntu 20.04.3
  • Database: Sqlite
  • Node Version: 16.13.0
  • NPM Version: 8.1.0
  • Yarn Version: 1.22.17

I can create a controller for created contentType, ex: api::restaurant.restaurant.

But for built-in plugins, ex: plugin::users-permissions.user, I don’t know where to put the controller.

1 Like

Hello @Unviray, this link could be helpful CLICK ME

1 Like

You are correct that this is different than creating a controller for a regular content-type that you’ve created.
In the case of extending a pre-existing plugin, you would use the extensions dir for it.

See Plugins extension - Strapi Developer Docs.