oms-Search/Admin/Routes/Web/Backend.php
Dennis Eichhorn e733e91592
Some checks failed
Image optimization / general_image_workflow (push) Has been cancelled
CI / general_module_workflow_php (push) Has been cancelled
CI / general_module_workflow_js (push) Has been cancelled
fix version and bugs
2024-05-21 00:09:17 +02:00

34 lines
803 B
PHP
Executable File

<?php
/**
* Jingga
*
* PHP Version 8.2
*
* @package Modules
* @copyright Dennis Eichhorn
* @license OMS License 2.2
* @version 1.0.0
* @link https://jingga.app
*/
declare(strict_types=1);
use Modules\Search\Controller\BackendController;
use Modules\Search\Models\PermissionCategory;
use phpOMS\Account\PermissionType;
use phpOMS\Router\RouteVerb;
return [
'^/search(\?.*|$)' => [
[
'dest' => '\Modules\Search\Controller\BackendController:search',
'verb' => RouteVerb::ANY,
'active' => true,
'permission' => [
'module' => BackendController::NAME,
'type' => PermissionType::READ,
'state' => PermissionCategory::SEARCH,
],
],
],
];