<?php
declare(strict_types=1);
require_once __DIR__ . '/../../app/Models/Vendor.php';
require_once __DIR__ . '/../../app/Config/functions.php';

class VendorController {
    public function index(): void {
        require_login();
        $model = new Vendor();
        $vendors = $model->getAll();
        include __DIR__ . '/../../app/Views/vendor/index.php';
    }
}
