mirror of
https://github.com/strapi/strapi.git
synced 2025-07-23 09:00:19 +00:00

- Remove users-permissions sanitization step in core - Move sanitization functions to users-permissions plugin utils - Add sanitizers registry to container for manage sanitizer functions in core so that we can get/add sanitizers anywhere we want
13 lines
196 B
JavaScript
13 lines
196 B
JavaScript
'use strict';
|
|
|
|
const sanitize = require('./sanitize');
|
|
|
|
const getService = name => {
|
|
return strapi.plugin('users-permissions').service(name);
|
|
};
|
|
|
|
module.exports = {
|
|
getService,
|
|
sanitize,
|
|
};
|