Add endpoints required to store the results of a backup

This commit is contained in:
Dane Everitt 2020-04-04 16:07:09 -07:00
parent ad9194a65c
commit 15b436d26e
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
4 changed files with 104 additions and 0 deletions

View file

@ -0,0 +1,20 @@
<?php
namespace Pterodactyl\Http\Requests\Api\Remote;
use Illuminate\Foundation\Http\FormRequest;
class ReportBackupCompleteRequest extends FormRequest
{
/**
* @return string[]
*/
public function rules()
{
return [
'successful' => 'boolean',
'sha256_hash' => 'string|required_if:successful,true',
'file_size' => 'numeric|required_if:successful,true',
];
}
}