mirror of
https://github.com/strapi/strapi.git
synced 2025-07-19 07:02:26 +00:00
17 lines
319 B
JavaScript
17 lines
319 B
JavaScript
// 1 - load original plugin
|
|
// 2 - load content types overwrites
|
|
// 3 - execute plugin extensions
|
|
|
|
module.exports = plugin => {
|
|
// extend article content type
|
|
|
|
plugin.contentTypes.article.collectionName === 'foo';
|
|
|
|
plugin.routes.push({
|
|
method: 'GET',
|
|
handler: 'myCtrl.actionA',
|
|
});
|
|
|
|
return plugin;
|
|
};
|