//{filter import { Context } from "@ipare/core"; import { ActionFilter } from "@ipare/filter"; export class GlobalActionFilter implements ActionFilter { onActionExecuted(ctx: Context): void | Promise { ctx.res.setHeader("excuted", 1); } onActionExecuting( ctx: Context ): boolean | void | Promise | Promise { ctx.res.setHeader("action", 1); return true; // return false to intercept } } //}