mirror of
https://github.com/strapi/strapi.git
synced 2025-08-27 18:25:49 +00:00
16 lines
337 B
JavaScript
16 lines
337 B
JavaScript
'use strict';
|
|
|
|
const registerUploadMiddlware = require('./middlewares/upload');
|
|
|
|
/**
|
|
* Register upload plugin
|
|
* @param {{ strapi: import('@strapi/strapi').Strapi }}
|
|
*/
|
|
module.exports = async ({ strapi }) => {
|
|
await registerUploadMiddlware({ strapi });
|
|
|
|
if (strapi.plugin('graphql')) {
|
|
require('./graphql')({ strapi });
|
|
}
|
|
};
|