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