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