mirror of
https://github.com/QuantumNous/new-api.git
synced 2026-04-24 23:08:37 +00:00
feat: dyn middlewares based on js rt
This commit is contained in:
9
scripts/post_process.js
Normal file
9
scripts/post_process.js
Normal file
@@ -0,0 +1,9 @@
|
||||
// 后处理
|
||||
// 在请求处理完成后执行的函数
|
||||
//
|
||||
// @param {Object} ctx - 请求上下文对象
|
||||
// @param {Object} response - 响应对象(包含状态码、头部和正文等)
|
||||
// @returns {Object|undefined} - 返回修改后的响应对象或 undefined
|
||||
function postProcessResponse(ctx, response) {
|
||||
return undefined;
|
||||
}
|
||||
Reference in New Issue
Block a user