Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
_config.php
1<?php
2
4
5// system part
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
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();