<?php
namespace Incoviba\Controller\API;

use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;
use Incoviba\Common\Ideal\Controller;

class Base extends Controller
{
    use withJson;

    public function __invoke(ServerRequestInterface $request, ResponseInterface $response): ResponseInterface
    {
        $output = [
            'version' => '2.0.0',
            'organization' => 'Ingenieria y Construccion Vial Balmaceda Sociedad Anonima'
        ];
        return $this->withJson($response, $output);
    }
}
