文档服务 API:中间件
🌐 Document Service API: Middlewares
Page summary:文档服务中间件允许你在文档服务方法运行之前和之后执行操作,通过
strapi.documents.use()注册中间件函数,并可以访问内容类型上下文和方法参数。🌐 Document Service middlewares allow you to perform actions before and after Document Service methods run by registering middleware functions via
strapi.documents.use()with access to content type context and method parameters.
文档服务 API 提供了通过中间件扩展其行为的能力。
🌐 The Document Service API offers the ability to extend its behavior thanks to middlewares.
文档服务中间件允许你在方法运行之前和/或之后执行操作。
🌐 Document Service middlewares allow you to perform actions before and/or after a method runs.
