Skip to content

Commit 41b1ca6

Browse files
authored
GenerateDoc, added default methods for media endpoints
1 parent 0ff1ed9 commit 41b1ca6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Services/OpenApi/GenerateDoc.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,10 @@ protected function getDocBlock($action)
373373
$reflection = new ReflectionClass($class);
374374

375375
if(!$reflection->hasMethod($method)) {
376-
$defaultMethods = ['index', 'show', 'store', 'update', 'destroy'];
376+
$defaultMethods = [
377+
'index', 'show', 'store', 'update', 'destroy',
378+
'mediaIndex', 'mediaShow', 'mediaStore', 'mediaUpdate', 'mediaDestroy',
379+
];
377380
if(in_array($method, $defaultMethods)) {
378381
$method = 'default' . ucfirst($method);
379382
}

0 commit comments

Comments
 (0)