mirror of
https://github.com/strapi/strapi.git
synced 2025-08-28 10:45:51 +00:00
12 lines
248 B
JavaScript
12 lines
248 B
JavaScript
'use strict';
|
|
|
|
const registerUploadMiddlware = require('./controllers/upload-middleware');
|
|
|
|
module.exports = async ({ strapi }) => {
|
|
await registerUploadMiddlware();
|
|
|
|
if (strapi.plugin('graphql')) {
|
|
require('./graphql')({ strapi });
|
|
}
|
|
};
|