fix: hideServer & hideClient

This commit is contained in:
loks0n
2024-02-24 13:42:33 +00:00
parent 6cc1235e86
commit 42e9865dff
5 changed files with 10 additions and 6 deletions
+6 -2
View File
@@ -190,8 +190,12 @@ class Specs extends Action
}
if (empty($routeSecurity)) {
$sdkPlaforms[] = APP_PLATFORM_CLIENT;
$sdkPlaforms[] = APP_PLATFORM_SERVER;
if (!$route->getLabel('sdk.hideServer', false)) {
$sdkPlatforms[] = APP_PLATFORM_SERVER;
}
if (!$route->getLabel('sdk.hideClient', false)) {
$sdkPlatforms[] = APP_PLATFORM_CLIENT;
}
}
if (!$route->getLabel('docs', true)) {