52 lines
1.4 KiB
PHP
52 lines
1.4 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
return [
|
|
'category:delete' => [
|
|
'pattern' => '/categories/{id}/delete',
|
|
'paths' => [
|
|
'namespace' => 'App\Forum\Category\Controllers',
|
|
'controller' => 'delete',
|
|
'action' => 'main',
|
|
],
|
|
'httpMethods' => ['GET'],
|
|
],
|
|
'category:edit' => [
|
|
'pattern' => '/categories/{id}',
|
|
'paths' => [
|
|
'namespace' => 'App\Forum\Category\Controllers',
|
|
'controller' => 'edit',
|
|
'action' => 'main',
|
|
],
|
|
'httpMethods' => ['GET', 'POST'],
|
|
],
|
|
'category:show' => [
|
|
'pattern' => '/{slug}',
|
|
'paths' => [
|
|
'namespace' => 'App\Forum\Category\Controllers',
|
|
'controller' => 'show',
|
|
'action' => 'main',
|
|
],
|
|
'httpMethods' => ['GET'],
|
|
],
|
|
'category:index' => [
|
|
'pattern' => '/',
|
|
'paths' => [
|
|
'namespace' => 'App\Forum\Category\Controllers',
|
|
'controller' => 'index',
|
|
'action' => 'main',
|
|
],
|
|
'httpMethods' => ['GET'],
|
|
],
|
|
'category:add' => [
|
|
'pattern' => '/add-category',
|
|
'paths' => [
|
|
'namespace' => 'App\Forum\Category\Controllers',
|
|
'controller' => 'add',
|
|
'action' => 'main',
|
|
],
|
|
'httpMethods' => ['GET', 'POST'],
|
|
],
|
|
];
|