Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
13 / 13
n/a
0 / 0
CRAP
n/a
0 / 0
1<?php
2/**
3 * Jingga
4 *
5 * PHP Version 8.1
6 *
7 * @package   Modules
8 * @copyright Dennis Eichhorn
9 * @license   OMS License 2.0
10 * @version   1.0.0
11 * @link      https://jingga.app
12 */
13declare(strict_types=1);
14
15use Modules\Billing\Controller\BackendController;
16use Modules\Billing\Models\PermissionCategory;
17use phpOMS\Account\PermissionType;
18use phpOMS\Router\RouteVerb;
19
20return [
21    '^.*/bill/render.*$' => [
22        [
23            'dest'       => '\Modules\Billing\Controller\ApiBillController:apiMediaRender',
24            'verb'       => RouteVerb::GET,
25            'permission' => [
26                'module' => BackendController::NAME,
27                'type'   => PermissionType::CREATE,
28                'state'  => PermissionCategory::SALES_INVOICE,
29            ],
30        ],
31    ],
32];