mirror of
https://github.com/strapi/strapi.git
synced 2025-07-16 21:41:59 +00:00
19 lines
527 B
JavaScript
19 lines
527 B
JavaScript
![]() |
'use strict';
|
||
|
|
||
|
const { getService } = require('./utils');
|
||
|
|
||
|
module.exports = {
|
||
|
// TODO: update load middleware to not load the admin middleware from here
|
||
|
// TODO: load bootstrap / register independently
|
||
|
async destroy() {
|
||
|
const { conditionProvider, actionProvider } = getService('permission');
|
||
|
|
||
|
await conditionProvider.clear();
|
||
|
await actionProvider.clear();
|
||
|
},
|
||
|
config: require('./config'),
|
||
|
services: require('./services'),
|
||
|
controllers: require('./controllers'),
|
||
|
models: require('./content-types'),
|
||
|
};
|