2021-07-13 18:46:36 +02:00
|
|
|
'use strict';
|
|
|
|
|
2021-09-24 09:04:44 +02:00
|
|
|
const { getService } = require('./utils');
|
2023-05-30 16:13:10 +01:00
|
|
|
const { ALLOWED_WEBHOOK_EVENTS } = require('./constants');
|
2021-07-13 18:46:36 +02:00
|
|
|
|
2021-09-24 09:04:44 +02:00
|
|
|
module.exports = async () => {
|
2023-05-30 16:13:10 +01:00
|
|
|
Object.entries(ALLOWED_WEBHOOK_EVENTS).forEach(([key, value]) => {
|
|
|
|
strapi.webhookStore.addAllowedEvent(key, value);
|
|
|
|
});
|
|
|
|
|
2023-08-17 14:54:28 +02:00
|
|
|
getService('field-sizes').setCustomFieldInputSizes();
|
2021-09-24 09:04:44 +02:00
|
|
|
await getService('components').syncConfigurations();
|
|
|
|
await getService('content-types').syncConfigurations();
|
|
|
|
await getService('permission').registerPermissions();
|
|
|
|
};
|