DEV Community

Discussion on: Strapi quirks you should know about

Collapse
 
odifyltsaeb profile image
Alan • Edited

I just tried that and it really was easy for a Strapi beginner like me. So here's what I did (for anyone else ending up here):

Navigated to strapi/src/extensions/users-permissions/ and created a file named strapi-server.js with following in it:

module.exports = (plugin) => {
  plugin.controllers.user.find = (ctx) => {
    return {};
  };
  return plugin;
};
Enter fullscreen mode Exit fullscreen mode

And that's it.