|
|
@ -11,8 +11,17 @@ use Symfony\Component\HttpFoundation\Request; |
|
|
|
class MainController extends AbstractController |
|
|
|
class MainController extends AbstractController |
|
|
|
{ |
|
|
|
{ |
|
|
|
#[Route( |
|
|
|
#[Route( |
|
|
|
'/', |
|
|
|
'/{part}', |
|
|
|
name: 'main_index', |
|
|
|
name: 'main_index', |
|
|
|
|
|
|
|
requirements: |
|
|
|
|
|
|
|
[ |
|
|
|
|
|
|
|
'namespace' => '^N[A-z0-9]{33}$', |
|
|
|
|
|
|
|
'part' => '^[\d]+$', |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
defaults: |
|
|
|
|
|
|
|
[ |
|
|
|
|
|
|
|
'part' => 1, |
|
|
|
|
|
|
|
], |
|
|
|
methods: |
|
|
|
methods: |
|
|
|
[ |
|
|
|
[ |
|
|
|
'GET' |
|
|
|
'GET' |
|
|
@ -42,11 +51,16 @@ class MainController extends AbstractController |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
#[Route( |
|
|
|
#[Route( |
|
|
|
'/{namespace}', |
|
|
|
'/{namespace}/{part}', |
|
|
|
name: 'main_namespace', |
|
|
|
name: 'main_namespace', |
|
|
|
requirements: |
|
|
|
requirements: |
|
|
|
[ |
|
|
|
[ |
|
|
|
'namespace' => '^N[A-z0-9]{33}$', |
|
|
|
'namespace' => '^N[A-z0-9]{33}$', |
|
|
|
|
|
|
|
'part' => '^[\d]+$', |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
defaults: |
|
|
|
|
|
|
|
[ |
|
|
|
|
|
|
|
'part' => 1, |
|
|
|
], |
|
|
|
], |
|
|
|
methods: |
|
|
|
methods: |
|
|
|
[ |
|
|
|
[ |
|
|
|