Skip to content

Commit d5b89d6

Browse files
committed
feature: middleware support
1 parent fae248c commit d5b89d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/LogReader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public static function registerRoute(): void
3939
Route::get('/tail', [LogReaderController::class, 'tail']);
4040
Route::get('/download', [LogReaderController::class, 'download']);
4141
Route::get('/delete', [LogReaderController::class, 'delete']);
42-
});
42+
})->middleware($config['middleware'] ?? []);
4343
}
4444

4545
/**

0 commit comments

Comments
 (0)