create register whit Socialite for google and facebook.use passport for get token
This commit is contained in:
11
backend/routes/api.php
Normal file
11
backend/routes/api.php
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
use app\User\Auth\AuthController;
|
||||
use Illuminate\Support\Facades\Route;
|
||||
|
||||
Route::prefix('Auth')
|
||||
->controller(AuthController::class)
|
||||
->group(function () {
|
||||
Route::get('google/redirect', 'redirectToGoogle')->name('google.redirect');
|
||||
Route::get('google/registerGoogle', 'registerGoogle')->name('google.registerGoogle');
|
||||
});
|
||||
Reference in New Issue
Block a user