Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
_config.php
1
<?php
2
3
namespace
Bitrix\Main\Routing
;
4
5
// system part
6
$routes
=
new
RoutingConfigurator
;
7
$routes
->
setRouter
(
new
Router
);
8
9
// user part
12
$routes
->middleware([
'roleDeterminant'
])->prefix(
'servicelines'
)->group(
function
(
RoutingConfigurator
$routes
) {
13
//
14
$routes
->get(
'/handbook/profiles'
, [API\ServiceLines\Handbook::class,
'profiles'
]);
15
16
$routes
17
->domain(
'dev.1c-bitrix.ru'
)
18
->middleware([
'serviceLineDeterminant'
])
19
->where(
'serviceCode'
,
'[a-zA-Z]'
)
20
->group(
function
(
RoutingConfigurator
$routes
) {
21
//
22
$routes
->get(
'/handbook/{serviceCode}/rulesForFields'
, [API\ServiceLines\Handbook::class,
'rulesForFields'
]);
23
24
//
25
$routes
->get(
'/handbook/{serviceCode}/enumFields'
, [API\ServiceLines\Handbook::class,
'enumFields'
]);
26
});
27
});
28
29
// system part
30
$router
=
$routes
->getRouter();
31
$router
->releaseRoutes();
Bitrix\Main\Routing\Router
Definition
router.php:19
Bitrix\Main\Routing\RoutingConfigurator
Definition
routingconfigurator.php:36
Bitrix\Main\Routing\RoutingConfigurator\setRouter
setRouter($router)
Definition
routingconfigurator.php:100
Bitrix\Main\Routing
Definition
_config.php:3
Bitrix\Main\Routing\$routes
$routes
Definition
_config.php:6
Bitrix\Main\Routing\$router
$router
Definition
_config.php:30
modules
main
lib
routing
_config.php
Создано системой
1.10.0