strapi-plugin-slugify/server/utils/getPluginService.js
2022-02-17 02:09:21 -05:00

15 lines
262 B
JavaScript

'use strict';
const { pluginId } = require('./pluginId');
/**
* A helper function to obtain a plugin service
*
* @return service
*/
const getPluginService = (strapi, name) => strapi.plugin(pluginId).service(name);
module.exports = {
getPluginService,
};