Delete: Song history

This commit is contained in:
2022-04-14 23:25:29 +02:00
parent 55b197f64d
commit cbad29dfd9
10 changed files with 60 additions and 193 deletions

View File

@@ -0,0 +1,15 @@
import { schema } from '@ioc:Adonis/Core/Validator'
import { HttpContextContract } from '@ioc:Adonis/Core/HttpContext'
export default class SongRangeValidator {
constructor(protected ctx: HttpContextContract) {
}
public schema = schema.create({
range: schema.enum.optional(['short', 'medium', 'long'] as const),
})
public messages = {
required: 'The field {{field}} is required',
}
}