Skip to content

Commit 1d41e72

Browse files
authored
restifyjs setup without auth middleware (#598)
* fix: restifyjs setup without auth middleware * Fix styling --------- Co-authored-by: binaryk <[email protected]>
1 parent 7961f44 commit 1d41e72

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/Bootstrap/RoutesDefinition.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
use Binaryk\LaravelRestify\Http\Controllers\ProfileController;
77
use Binaryk\LaravelRestify\Http\Controllers\ProfileUpdateController;
88
use Binaryk\LaravelRestify\Http\Controllers\RestifyJsSetupController;
9-
use Binaryk\LaravelRestify\Http\Middleware\RestifySanctumAuthenticate;
109
use Illuminate\Support\Facades\Route;
1110

1211
class RoutesDefinition
@@ -169,9 +168,8 @@ public function once(): void
169168
Route::post('/profile', ProfileUpdateController::class)->name('profile.updatePost');
170169

171170
// RestifyJS
172-
Route::get('/restifyjs/setup', RestifyJsSetupController::class)->withoutMiddleware(
173-
RestifySanctumAuthenticate::class,
174-
)->name('restifyjs.setup');
171+
Route::get('/restifyjs/setup',
172+
RestifyJsSetupController::class)->withoutMiddleware('auth:sanctum')->name('restifyjs.setup');
175173
}
176174

177175
public function withoutMiddleware(...$middleware): self

0 commit comments

Comments
 (0)