mirror of
https://github.com/strapi/strapi.git
synced 2025-07-25 09:56:53 +00:00
16 lines
506 B
JavaScript
16 lines
506 B
JavaScript
'use strict';
|
|
|
|
const { getService } = require('./utils');
|
|
const { ALLOWED_WEBHOOK_EVENTS } = require('./constants');
|
|
|
|
module.exports = async () => {
|
|
Object.entries(ALLOWED_WEBHOOK_EVENTS).forEach(([key, value]) => {
|
|
strapi.webhookStore.addAllowedEvent(key, value);
|
|
});
|
|
|
|
getService('field-sizes').setCustomFieldInputSizes();
|
|
await getService('components').syncConfigurations();
|
|
await getService('content-types').syncConfigurations();
|
|
await getService('permission').registerPermissions();
|
|
};
|