1 | <?php |
||
2 | |||
3 | declare(strict_types=1); |
||
4 | |||
5 | use AbterPhp\Admin\Http\Middleware\Api; |
||
6 | use AbterPhp\Admin\Http\Middleware\Authentication; |
||
7 | use AbterPhp\Admin\Http\Middleware\Authorization; |
||
8 | use AbterPhp\Admin\Http\Middleware\LastGridPage; |
||
9 | use AbterPhp\Files\Constant\Routes; |
||
10 | use AbterPhp\Framework\Authorization\Constant\Role; |
||
11 | use Opulence\Routing\Router; |
||
12 | |||
13 | /** |
||
14 | * ---------------------------------------------------------- |
||
15 | * Create all of the routes for the HTTP kernel |
||
16 | * ---------------------------------------------------------- |
||
17 | * |
||
18 | * @var Router $router |
||
19 | */ |
||
20 | $router->group( |
||
21 | ['controllerNamespace' => 'AbterPhp\Files\Http\Controllers'], |
||
22 | function (Router $router) { |
||
23 | /** @see \AbterPhp\Files\Http\Controllers\Website\File::download() */ |
||
24 | $router->get( |
||
25 | Routes::PATH_FILE, |
||
26 | 'Website\File@download', |
||
27 | [OPTION_NAME => Routes::ROUTE_PUBLIC_FILE] |
||
0 ignored issues
–
show
Bug
introduced
by
![]() |
|||
28 | ); |
||
29 | } |
||
30 | ); |
||
31 |