mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-27 09:49:22 +02:00
small fix to routes with string
This commit is contained in:
parent
d17c547bca
commit
61285b6b8c
@ -118,7 +118,7 @@ $dispatcher = FastRoute\cachedDispatcher(function (FastRoute\RouteCollector $r)
|
|||||||
|
|
||||||
$aliases = [
|
$aliases = [
|
||||||
[':int', ':string', ':alphanum'],
|
[':int', ':string', ':alphanum'],
|
||||||
[':\d+', ':[A-Za-z0-9-_%+\']+}', ':[A-Za-z0-9]+'],
|
[':\d+', ':[A-Za-z0-9-_%+\']+', ':[A-Za-z0-9]+'],
|
||||||
];
|
];
|
||||||
|
|
||||||
// apply aliases
|
// apply aliases
|
||||||
|
@ -30,7 +30,7 @@ return [
|
|||||||
['GET', 'account/confirm_email/{hash:[A-Za-z0-9-_]+}[/]', 'account/confirm_email.php'],
|
['GET', 'account/confirm_email/{hash:[A-Za-z0-9-_]+}[/]', 'account/confirm_email.php'],
|
||||||
|
|
||||||
['GET', 'bans/{page:\d+}[/]', 'bans.php'],
|
['GET', 'bans/{page:\d+}[/]', 'bans.php'],
|
||||||
[['GET', 'POST'], 'characters[/{name:string]', 'characters.php'],
|
[['GET', 'POST'], 'characters[/{name:string}]', 'characters.php'],
|
||||||
['GET', 'changelog[/{page:int}]', 'changelog.php'],
|
['GET', 'changelog[/{page:int}]', 'changelog.php'],
|
||||||
['GET', 'creatures[/{name:string}]', 'creatures.php'],
|
['GET', 'creatures[/{name:string}]', 'creatures.php'],
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user