mirror of
https://github.com/ArthurDanjou/artdanj-api.git
synced 2026-01-14 12:14:33 +01:00
17 lines
394 B
TypeScript
17 lines
394 B
TypeScript
import { schema } from '@ioc:Adonis/Core/Validator'
|
|
import { HttpContextContract } from '@ioc:Adonis/Core/HttpContext'
|
|
|
|
export default class FormValidator {
|
|
constructor (protected ctx: HttpContextContract) {
|
|
}
|
|
|
|
public schema = schema.create({
|
|
name: schema.string(),
|
|
email: schema.string(),
|
|
subject: schema.string(),
|
|
content: schema.string()
|
|
})
|
|
|
|
public messages = {}
|
|
}
|