Skip to content

Commit 23dd458

Browse files
committed
Read multi-method auth
1 parent 30c86f5 commit 23dd458

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Spec/Swagger2.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,7 @@ public function getMethods($service)
308308
foreach ($method['x-appwrite']['methods'] as $additionalMethod) {
309309
$duplicatedMethod = $method;
310310
$duplicatedMethod['x-appwrite']['method'] = $additionalMethod['name'];
311+
$duplicatedMethod['x-appwrite']['auth'] = $additionalMethod['auth'] ?? [];
311312

312313
// Update Response
313314
$responses = $additionalMethod['responses'];

0 commit comments

Comments
 (0)