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