File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -410,12 +410,20 @@ Parser.prototype._findBlockWithApiGetIndex = function(blocks) {
410
410
for ( var i = 0 ; i < blocks . length ; i += 1 ) {
411
411
var found = false ;
412
412
for ( var j = 0 ; j < blocks [ i ] . length ; j += 1 ) {
413
+ // check apiIgnore
413
414
if ( blocks [ i ] [ j ] . name . substr ( 0 , 9 ) === 'apiignore' ) {
414
415
app . log . debug ( 'apiIgnore found in block: ' + i ) ;
415
416
found = false ;
416
417
break ;
417
418
}
418
419
420
+ // check app.options.apiprivate and apiPrivate
421
+ if ( ! app . options . apiprivate && blocks [ i ] [ j ] . name . substr ( 0 , 10 ) === 'apiprivate' ) {
422
+ app . log . debug ( 'private flag is set to false and apiPrivate found in block: ' + i ) ;
423
+ found = false ;
424
+ break ;
425
+ }
426
+
419
427
if ( blocks [ i ] [ j ] . name . substr ( 0 , 3 ) === 'api' )
420
428
found = true ;
421
429
}
You can’t perform that action at this time.
0 commit comments