Skip to content

Commit 9a4afc4

Browse files
Merge pull request #13 from birkaaa/main
Config to add middleware for routes
2 parents 4e420d6 + 54da193 commit 9a4afc4

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

config/cookieconsent.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
'url' => [
1818
'domain' => null,
19+
'middleware' => [],
1920
'prefix' => 'cookie-consent',
2021
],
2122

routes/web.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
'as' => 'cookieconsent.',
1212
'domain' => config('cookieconsent.url.domain'),
1313
'prefix' => config('cookieconsent.url.prefix'),
14+
'middleware' => config('cookieconsent.url.middleware')
1415
], function() {
1516
Route::get('script', ScriptController::class)
1617
->name('script');

0 commit comments

Comments
 (0)