This repository has been archived on 2024-07-11. You can view files and clone it, but cannot push or open issues or pull requests.
yoshop/source/application/route.php
2020-04-25 22:20:29 +08:00

16 lines
300 B
PHP

<?php
// 设限制URL兼容模式
\think\Url::root('index.php?s=');
return [
'__pattern__' => [
'name' => '\w+',
],
'[hello]' => [
':id' => ['index/hello', ['method' => 'get'], ['id' => '\d+']],
':name' => ['index/hello', ['method' => 'post']],
],
];