It was written up in 4.7 but never made the work order, which is exactly how it stayed dangerous in the first place. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
9 lines
193 B
TypeScript
9 lines
193 B
TypeScript
import type { Middleware } from "@wrnexus/core";
|
|
|
|
const logger: Middleware = async (ctx, next) => {
|
|
console.log(ctx.req.method, ctx.url.pathname);
|
|
return next();
|
|
};
|
|
|
|
export default logger;
|