feat: add CommonModule with PurgeService and global exception filter

Introduced CommonModule to centralize shared functionality. Added PurgeService for automated database cleanup and a global exception filter for unified error handling.
This commit is contained in:
Mathis HERRIOT
2026-01-08 15:25:04 +01:00
parent 705f1ad6e0
commit 2218768adb
4 changed files with 138 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
import { Request } from "express";
export interface AuthenticatedRequest extends Request {
user: {
sub: string;
username: string;
};
}