Skip to content

Commit 8e23396

Browse files
committed
Add fix incorrect use of config
1 parent e200672 commit 8e23396

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

config/exponent-push-notifications.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
return [
1010
'middleware' => [
11-
//'auth:sanctum', <- Only use this middleware if you're using Sanctum
11+
//'auth:sanctum', //<- Use only this middleware if you're using Sanctum
1212
'auth:api',
1313
'bindings'
1414
],

src/Http/routes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
Route::group(['prefix' => 'api/exponent/devices', 'middleware' => !config('middleware') ?? ['auth:api', 'bindings']], function () {
3+
Route::group(['prefix' => 'api/exponent/devices', "middleware" => config("exponent-push-notifications")["middleware"]], function () {
44
Route::post('subscribe', [
55
'as' => 'register-interest',
66
'uses' => 'NotificationChannels\ExpoPushNotifications\Http\ExpoController@subscribe',

0 commit comments

Comments
 (0)