Archived
1
0
Fork 0
This repository has been archived on 2026-06-16. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
heritage-wow/routes/oauth.php

16 lines
421 B
PHP

<?php
use Laravel\Socialite\Facades\Socialite;
use App\Http\Controllers\Auth\OAuthController;
$drivers = [
'discord'
];
Route::prefix('/oauth/{driver}')
->where([ 'driver' => collect($drivers)->join('|') ])
->name('oauth.')->group(function () {
Route::get('/', [ OAuthController::class, 'create' ])->name('create');
Route::get('/callback', [ OAuthController::class, 'store' ])->name('store');
});