Alexandre Bodin 8ecc36cfa3 Init refactoring of content manager configuration routes
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-11-02 19:41:42 +01:00

11 lines
264 B
JavaScript

'use strict';
const { prop } = require('lodash/fp');
module.exports = {
// retrieve a local service from the contet manager plugin to make the code more readable
getService(name) {
return prop(`content-manager.services.${name}`, strapi.plugins);
},
};