From 5a48703e21a7f0fdd736fe8171ab832d42f49bda Mon Sep 17 00:00:00 2001 From: Joel Butcher Date: Mon, 6 Nov 2023 23:13:46 +0000 Subject: [PATCH] fix: inertia routes --- routes/socialstream-inertia.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/routes/socialstream-inertia.php b/routes/socialstream-inertia.php index baad6494..15a0dbba 100644 --- a/routes/socialstream-inertia.php +++ b/routes/socialstream-inertia.php @@ -10,8 +10,7 @@ Route::group(['middleware' => config('socialstream.middleware', ['web'])], function () { Route::get('/oauth/{provider}', [OAuthController::class, 'redirect'])->name('oauth.redirect'); - Route::get('/oauth/{provider}/callback', [OAuthController::class, 'callback'])->name('oauth.callback'); - Route::post('/oauth/{provider}/callback', [OAuthController::class, 'callback'])->name('oauth.callback'); + Route::match(['get', 'post'], '/oauth/{provider}/callback', [OAuthController::class, 'callback'])->name('oauth.callback'); Route::delete('/user/connected-account/{id}', [ConnectedAccountController::class, 'destroy']) ->middleware(['auth'])