Close dialog on status change

This commit is contained in:
Jose Selesan
2026-05-06 17:03:42 -03:00
parent 41a217e8a9
commit 7be776f189
22 changed files with 408 additions and 428 deletions

View File

@@ -1,16 +1,16 @@
import type { MiddlewareHandler } from 'hono'
import type { MiddlewareHandler } from 'hono';
type Env = {
Variables: {
requestId: string
}
}
requestId: string;
};
};
export const requestIdMiddleware: MiddlewareHandler<Env> = async (c, next) => {
const requestId = crypto.randomUUID()
const requestId = crypto.randomUUID();
c.set('requestId', requestId)
c.header('X-Request-Id', requestId)
c.set('requestId', requestId);
c.header('X-Request-Id', requestId);
await next()
}
await next();
};