[1/n]: Migrate deleteOne Rest API to use TwentyORM directly (#9784)

# This PR

- Addressing #3644 
- Migrates the `DELETE /rest/*` endpoint to use TwentyORM
- Factorizes common middleware logic into a common module

---------

Co-authored-by: martmull <martmull@hotmail.fr>
This commit is contained in:
P A C · 先生
2025-01-31 17:12:20 +02:00
committed by GitHub
parent d6788348ba
commit 66296a4787
22 changed files with 548 additions and 119 deletions

View File

@ -5,6 +5,7 @@ declare module '@jest/types' {
interface ConfigGlobals {
APP_PORT: number;
ACCESS_TOKEN: string;
EXPIRED_ACCESS_TOKEN: string;
}
}
}
@ -12,6 +13,7 @@ declare module '@jest/types' {
declare global {
const APP_PORT: number;
const ACCESS_TOKEN: string;
const EXPIRED_ACCESS_TOKEN: string;
}
export {};