<?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('/units', 'UnitController@index', $mw);
$router->post('/units', 'UnitController@store', $mw);
$router->get('/units/{id}', 'UnitController@show', $mw);
$router->put('/units/{id}', 'UnitController@update', $mw);
$router->delete('/units/{id}', 'UnitController@delete', $mw);
