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:
1 parent
9ba6b38014
commit
5318eac6be
1 file changed
+5
-5
@@ -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