fix: add admin

This commit is contained in:
2026-02-14 10:14:49 +01:00
parent 2e02d6d763
commit f2b690f3f5
86 changed files with 1057 additions and 1939 deletions

View File

@@ -0,0 +1,17 @@
export interface RequestLogEntry {
ip: string;
path: string;
method: string;
statusCode: number;
userAgent: string;
timestamp: string;
}
export function logRequest(data: RequestLogEntry): void {
try {
const redis = getRedis();
redis.lpush("request-logs", JSON.stringify(data)).catch(() => {});
} catch {
// Never let logging break API responses
}
}