- Some bugfixes made in skeleton dir and fixed 'email' route pattern
This commit is contained in:
1 parent
5769f600fe
commit
1a5d4dd0b2
5 files changed
+32
-29
No files matched your search
@@ -15,7 +15,10 @@ use Notes\Breadcrumb\Breadcrumb;
|
||||
|
||||
use Storage\SessionMiddleware;
|
||||
|
||||
use Psr\Http\Message\{ ResponseInterface, ServerRequestInterface };
|
||||
use Ulmus\User\Middleware\{
|
||||
HeaderAuthenticationMiddleware,
|
||||
PostRequestAuthenticationMiddleware
|
||||
};
|
||||
|
||||
return [
|
||||
Lean\Routing::class => autowire(Lean\Routing::class),
|
||||
@@ -65,7 +68,7 @@ return [
|
||||
}
|
||||
}
|
||||
|
||||
$router->addPatternMatcher('email', '[^@ \t\r\n]+@[^@ \t\r\n]+\.[^@ \t\r\n/]+');
|
||||
$router->addPatternMatcher('email', '[^@ \t\r\n/]+@[^@ \t\r\n/]+\.[^@ \t\r\n/]+');
|
||||
$router->addPatternMatcher('ids', '\b\d[\d,]*\b');
|
||||
|
||||
$routing = $container->get(Lean\Routing::class);
|
||||
@@ -74,4 +77,4 @@ return [
|
||||
return $router;
|
||||
};
|
||||
},
|
||||
];
|
||||
];
|
||||
Reference in new issue
Block a user