<?php

declare(strict_types=1);

require_once __DIR__ . '/../includes/auth.php';
require_once __DIR__ . '/../includes/mvc.php';

use App\Controllers\ContractController;

$controller = new ContractController();

if ($_SERVER['REQUEST_METHOD'] === 'POST') {
    $controller->store();
    exit;
}

$controller->showCreateForm();
