mirror of
https://github.com/strapi/strapi.git
synced 2025-07-19 15:06:11 +00:00
17 lines
347 B
JavaScript
17 lines
347 B
JavaScript
'use strict';
|
|
|
|
const { prop } = require('lodash/fp');
|
|
const parseBody = require('./parse-body');
|
|
const wrapBadRequest = require('./wrap-bad-request');
|
|
|
|
// retrieve a local service
|
|
const getService = name => {
|
|
return prop(`content-manager.services.${name}`, strapi.plugins);
|
|
};
|
|
|
|
module.exports = {
|
|
getService,
|
|
parseBody,
|
|
wrapBadRequest,
|
|
};
|