oms-Calendar/Admin/Routes/Web/Backend.php

33 lines
801 B
PHP
Executable File

<?php
/**
* Karaka
*
* PHP Version 8.0
*
* @package Modules
* @copyright Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link https://karaka.app
*/
declare(strict_types=1);
use Modules\Calendar\Controller\BackendController;
use Modules\Calendar\Models\PermissionCategory;
use phpOMS\Account\PermissionType;
use phpOMS\Router\RouteVerb;
return [
'^.*/calendar/dashboard.*$' => [
[
'dest' => '\Modules\Calendar\Controller\BackendController:viewCalendarDashboard',
'verb' => RouteVerb::GET,
'permission' => [
'module' => BackendController::NAME,
'type' => PermissionType::READ,
'state' => PermissionCategory::CALENDAR,
],
],
],
];