Convert backend to regular directory
This commit is contained in:
13
backend/src/validations/game.validation.js
Normal file
13
backend/src/validations/game.validation.js
Normal file
@@ -0,0 +1,13 @@
|
||||
const { z } = require("zod");
|
||||
|
||||
const participateSchema = z.object({
|
||||
code: z
|
||||
.string()
|
||||
.min(10, "Le code doit contenir 10 caractères")
|
||||
.max(10, "Le code doit contenir 10 caractères")
|
||||
.toUpperCase(),
|
||||
});
|
||||
|
||||
module.exports = {
|
||||
participateSchema,
|
||||
};
|
||||
Reference in New Issue
Block a user