mirror of
https://github.com/kvazar-network/webapp.git
synced 2025-01-24 22:04:44 +00:00
add sef pagination
This commit is contained in:
parent
1966099571
commit
61a90e2591
@ -11,8 +11,17 @@ use Symfony\Component\HttpFoundation\Request;
|
||||
class MainController extends AbstractController
|
||||
{
|
||||
#[Route(
|
||||
'/',
|
||||
'/{part}',
|
||||
name: 'main_index',
|
||||
requirements:
|
||||
[
|
||||
'namespace' => '^N[A-z0-9]{33}$',
|
||||
'part' => '^[\d]+$',
|
||||
],
|
||||
defaults:
|
||||
[
|
||||
'part' => 1,
|
||||
],
|
||||
methods:
|
||||
[
|
||||
'GET'
|
||||
@ -42,11 +51,16 @@ class MainController extends AbstractController
|
||||
}
|
||||
|
||||
#[Route(
|
||||
'/{namespace}',
|
||||
'/{namespace}/{part}',
|
||||
name: 'main_namespace',
|
||||
requirements:
|
||||
[
|
||||
'namespace' => '^N[A-z0-9]{33}$',
|
||||
'part' => '^[\d]+$',
|
||||
],
|
||||
defaults:
|
||||
[
|
||||
'part' => 1,
|
||||
],
|
||||
methods:
|
||||
[
|
||||
|
Loading…
x
Reference in New Issue
Block a user