{"version":3,"file":"powered-by.mjs","sources":["../../src/middlewares/powered-by.ts"],"sourcesContent":["import type { Common } from '@strapi/types';\n\nexport interface Config {\n  poweredBy: string;\n}\n\nconst defaults: Config = {\n  poweredBy: 'Strapi <strapi.io>',\n};\n\nexport const poweredBy: Common.MiddlewareFactory<Partial<Config>> = (config) => {\n  const { poweredBy } = { ...defaults, ...config };\n\n  return async (ctx, next) => {\n    await next();\n\n    ctx.set('X-Powered-By', poweredBy);\n  };\n};\n"],"names":["poweredBy"],"mappings":"AAMA,MAAM,WAAmB;AAAA,EACvB,WAAW;AACb;AAEa,MAAA,YAAuD,CAAC,WAAW;AACxE,QAAA,EAAE,WAAAA,WAAU,IAAI,EAAE,GAAG,UAAU,GAAG;AAEjC,SAAA,OAAO,KAAK,SAAS;AAC1B,UAAM,KAAK;AAEP,QAAA,IAAI,gBAAgBA,UAAS;AAAA,EAAA;AAErC;"}