<?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('/credit-notes', 'CreditNoteController@index', $mw);
$router->post('/credit-notes', 'CreditNoteController@store', $mw);
$router->get('/credit-notes/{id}', 'CreditNoteController@show', $mw);
$router->put('/credit-notes/{id}', 'CreditNoteController@update', $mw);
$router->delete('/credit-notes/{id}', 'CreditNoteController@destroy', $mw);
$router->post('/credit-notes/{id}/issue', 'CreditNoteController@finalize', $mw);
$router->get('/credit-notes/{id}/pdf', 'CreditNoteController@pdf', $mw);
