<?php
declare(strict_types=1);

/** @var \App\Core\Router $router */

use App\Middleware\AuthMiddleware;
use App\Middleware\TenantMiddleware;

$mw = [AuthMiddleware::class, TenantMiddleware::class];

$router->get('/vendors', 'VendorController@index', $mw);
$router->post('/vendors', 'VendorController@store', $mw);
$router->get('/vendors/{id}', 'VendorController@show', $mw);
$router->put('/vendors/{id}', 'VendorController@update', $mw);
$router->delete('/vendors/{id}', 'VendorController@destroy', $mw);
