Skip to content

Commit 8b6c68c

Browse files
Merge pull request #64 from sachbearbeiter/main
Improve language code parsing
2 parents 70a3f56 + ba0d0d6 commit 8b6c68c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

config/api.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
return function () {
1616
return [
1717
[
18-
'pattern' => 'listings/(:all)/(:all)',
18+
'pattern' => 'listings/([a-zA-Z0-9-]+)/(:all)',
1919
'method' => 'GET',
2020
'action' => function ($language_code, $path) {
2121
$content = [];

0 commit comments

Comments
 (0)