You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
328 B
19 lines
328 B
2 months ago
|
<?php
|
||
|
|
||
|
use Kirby\Cms\Find;
|
||
|
|
||
|
$files = require __DIR__ . '/../files/dropdowns.php';
|
||
|
|
||
|
return [
|
||
|
'user' => [
|
||
|
'pattern' => 'users/(:any)',
|
||
|
'options' => function (string $id) {
|
||
|
return Find::user($id)->panel()->dropdown();
|
||
|
}
|
||
|
],
|
||
|
'user.file' => [
|
||
|
'pattern' => '(users/.*?)/files/(:any)',
|
||
|
'options' => $files['file']
|
||
|
]
|
||
|
];
|