Skip to content

Commit 7e333c1

Browse files
authored
Merge pull request #1077 from appwrite/fix-multi-method-auth
Read multi-method auth
2 parents 30c86f5 + 23dd458 commit 7e333c1

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)