<?php
declare(strict_types=1);

namespace App\Controllers\Api;

use Core\Controller;

final class VersionController extends Controller
{
    public function middleware(): array
    {
        return [];
    }

    public function index(): void
    {
        $this->json([
            'app'     => APP_NAME,
            'brand'   => APP_BRAND,
            'version' => '2.0.0-dev',
            'env'     => APP_ENV,
            'time'    => date('c'),
        ]);
    }
}
