Skip to content

Commit e200672

Browse files
committed
Only use config if defined
Fallback for those who have an old published config
1 parent 9964d75 commit e200672

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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('middleware') ?? ['auth:api', 'bindings']], function () {
44
Route::post('subscribe', [
55
'as' => 'register-interest',
66
'uses' => 'NotificationChannels\ExpoPushNotifications\Http\ExpoController@subscribe',

0 commit comments

Comments
 (0)