You can create your own driver by extending the MaintenanceDriver class and referencing it in your config/maintenance.ts configuration file.
app/maintenance/drivers.ts
import { MaintenanceDriver } from '@foadonis/maintenance'export default classCustomMaintenanceDriver extendsMaintenanceDriver { public asyncactivate(data:DownPayload):Promise<void> { // Store the data somewhere and enable maintenance } public asyncdeactivate():Promise<void> { // Disable the maintenance mode } public asyncactive():Promise<boolean> { // Returns true if maintenance mode is active } public asyncdata():Promise<DownPayload> { // Returns the maintenance mode data }}