mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Test Swagger files
This commit is contained in:
@@ -370,11 +370,11 @@ App::get('/specs/:format')
|
||||
|
||||
$models = $response->getModels();
|
||||
|
||||
foreach ($models as $key => $value) {
|
||||
if($platform !== APP_PLATFORM_CONSOLE && !$value->isPublic()) {
|
||||
unset($models[$key]);
|
||||
}
|
||||
}
|
||||
// foreach ($models as $key => $value) {
|
||||
// if($platform !== APP_PLATFORM_CONSOLE && !$value->isPublic()) {
|
||||
// unset($models[$key]);
|
||||
// }
|
||||
// }
|
||||
|
||||
switch ($format) {
|
||||
case 'swagger2':
|
||||
|
||||
Reference in New Issue
Block a user