修改文件路径

This commit is contained in:
liaofei 2023-04-26 15:23:36 +08:00
parent acabd73f61
commit ae7e657d27

View File

@ -136,6 +136,9 @@ class Util extends Command
$paramePath = implode('/', $paramePathMatche);
}
}
if ($path[0] === '/') {
$path = substr($path, 1);
}
$route[] = [
'method' => strtoupper($value['api']['method']),
'path' => $path . $paramePath,