mirror of
https://github.com/ComfortablyCoding/strapi-plugin-slugify.git
synced 2025-12-18 00:02:40 -05:00
15 lines
271 B
JavaScript
15 lines
271 B
JavaScript
'use strict';
|
|
|
|
const { pluginId } = require('./pluginId');
|
|
|
|
/**
|
|
* A helper function to obtain a plugin service
|
|
*
|
|
* @return service
|
|
*/
|
|
const getPluginService = (name, plugin = pluginId) => strapi.plugin(plugin).service(name);
|
|
|
|
module.exports = {
|
|
getPluginService,
|
|
};
|