mirror of
https://github.com/strapi/strapi.git
synced 2025-08-22 07:38:41 +00:00
10 lines
269 B
JavaScript
10 lines
269 B
JavaScript
'use strict';
|
|
|
|
const crudActionsToDisable = ['create', 'update', 'delete'];
|
|
|
|
module.exports = ({ strapi }) => {
|
|
const extension = strapi.plugin('graphql').service('extension');
|
|
|
|
extension.shadowCRUD('plugin::myplugin.test').disableActions(crudActionsToDisable);
|
|
};
|