修改生成api接口路径问题

修改生成api接口路径问题 控制器在文件夹下面api路径会生成带“.”统一替换成“/”
pull/515/head
Xiaohe 2024-06-17 09:35:38 +08:00 committed by Karson
parent fea7b3021a
commit a909967bd4
1 changed files with 1 additions and 0 deletions

View File

@ -205,6 +205,7 @@ class Builder
if ($subdomain) {
$route = substr($route, 4);
}
$route = str_replace('.', '/', $route);
$docsList[$section][$name] = [
'id' => $counter,
'method' => is_array($docs['ApiMethod'][0]) ? $docs['ApiMethod'][0]['data'] : $docs['ApiMethod'][0],