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