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