Connect Athena to Spotify

This commit is contained in:
2022-01-15 19:35:43 +01:00
parent f6070b20ee
commit 240fcbac90
23 changed files with 684 additions and 99 deletions

View File

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