Removing website data and add sport state

This commit is contained in:
2022-10-28 21:47:51 +02:00
parent 48b01c6b2b
commit 3b2724c4d5
57 changed files with 1271 additions and 3133 deletions

View File

@@ -0,0 +1,15 @@
import { schema } from '@ioc:Adonis/Core/Validator'
import type { HttpContextContract } from '@ioc:Adonis/Core/HttpContext'
export default class StateValidator {
constructor(protected ctx: HttpContextContract) {
}
public schema = schema.create({
value: schema.boolean(),
})
public messages = {
required: 'The field {{field}} is required',
}
}