<?php

namespace App\Http\Controllers;

use App\Checklist\CheckPrimaryDomain;
use App\Checklist\CheckPrimaryDomainSsl;
use App\Checklist\SiteEmailCheck;
use Illuminate\Http\Request;
use Stancl\Tenancy\Database\Models\Domain;

class ChecklistController extends Controller
{
    public function checkDomain(Domain $domain, CheckPrimaryDomain $check)
    {
        return [
            'status' => $check->performCheck($domain)
        ];
    }

    public function checkMail(SiteEmailCheck $check)
    {
        return [
            'status' => $check->handle()
        ];
    }
}
