mirror of
https://github.com/ArthurDanjou/artdanj-shortener.git
synced 2026-01-14 20:59:55 +01:00
18 lines
347 B
TypeScript
Executable File
18 lines
347 B
TypeScript
Executable File
import { HttpContextContract } from '@ioc:Adonis/Core/HttpContext'
|
|
import {schema} from '@ioc:Adonis/Core/Validator'
|
|
|
|
export default class UpdateValidator {
|
|
constructor (private ctx: HttpContextContract) {
|
|
}
|
|
|
|
public schema = schema.create({
|
|
target: schema.string()
|
|
})
|
|
|
|
|
|
public cacheKey = this.ctx.routeKey
|
|
|
|
|
|
public messages = {}
|
|
}
|