mirror of
https://github.com/strapi/strapi.git
synced 2025-08-04 23:03:00 +00:00
17 lines
534 B
JavaScript
17 lines
534 B
JavaScript
'use strict';
|
|
|
|
const { features } = require('@strapi/strapi/lib/utils/ee');
|
|
const executeCERegister = require('../../server/register');
|
|
const createAuditLogsService = require('./services/audit-logs');
|
|
|
|
module.exports = async ({ strapi }) => {
|
|
if (features.isEnabled('audit-logs')) {
|
|
const auditLogsService = createAuditLogsService(strapi);
|
|
strapi.container.register('audit-logs', auditLogsService);
|
|
auditLogsService.bootstrap();
|
|
}
|
|
// TODO: register auditLogs provider here
|
|
|
|
await executeCERegister({ strapi });
|
|
};
|