Added check on client side (api)

This commit is contained in:
Alexis
2024-11-24 19:56:00 +01:00
parent 5258ed3f2a
commit c7069164b0
10 changed files with 68 additions and 24 deletions

14
models/Errors.ts Normal file
View File

@@ -0,0 +1,14 @@
export interface ValidationError {
path: (string | number)[]
message: string
code: string
}
export interface APIError {
statusCode: number
statusMessage: string
message: string
data: {
errors: ValidationError[]
}
}