mirror of
https://github.com/ArthurDanjou/artdanj-api.git
synced 2026-01-29 19:10:28 +01:00
Add maintenance mode and update announce
This commit is contained in:
@@ -6,7 +6,7 @@ export default class AnnounceUpdateValidator {
|
||||
}
|
||||
|
||||
public schema = schema.create({
|
||||
code: schema.string(),
|
||||
code: schema.string.optional(),
|
||||
cover: schema.string.optional(),
|
||||
color: schema.string.optional(),
|
||||
hoverColor: schema.string.optional()
|
||||
|
||||
@@ -1,16 +1,15 @@
|
||||
import { schema } from '@ioc:Adonis/Core/Validator'
|
||||
import { HttpContextContract } from '@ioc:Adonis/Core/HttpContext'
|
||||
|
||||
export default class AnnounceStoreValidator {
|
||||
export default class MaintenanceUpdateValidator {
|
||||
constructor (protected ctx: HttpContextContract) {
|
||||
}
|
||||
|
||||
public schema = schema.create({
|
||||
code: schema.string(),
|
||||
cover: schema.string.optional(),
|
||||
color: schema.string(),
|
||||
hoverColor: schema.string()
|
||||
reason: schema.string.optional(),
|
||||
active: schema.boolean.optional()
|
||||
})
|
||||
|
||||
public messages = {
|
||||
required: 'The field {{field}} is required'
|
||||
}
|
||||
Reference in New Issue
Block a user