mirror of
https://github.com/appwrite/appwrite
synced 2026-05-22 16:38:32 +00:00
Test Swagger files
This commit is contained in:
parent
9ba6b38014
commit
5318eac6be
1 changed files with 5 additions and 5 deletions
|
|
@ -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':
|
||||
|
|
|
|||
Loading…
Reference in a new issue