]> git.localhorst.tv Git - alttp.git/blobdiff - routes/web.php
listen to round updates
[alttp.git] / routes / web.php
index ed62f1017910f25fb2adf2d6b66bfc9aea779bbe..903ca72c0694d6e4dfc3b3499978df73e99c5109 100644 (file)
@@ -1,5 +1,6 @@
 <?php
 
+use App\Http\Controllers\DiscordController;
 use Illuminate\Support\Facades\Route;
 
 /*
@@ -14,3 +15,11 @@ use Illuminate\Support\Facades\Route;
 */
 
 Route::view('/{path?}', 'app')->where('path', '.*');
+
+Route::group(['prefix' => config('larascord.prefix'), 'middleware' => ['web']], function() {
+    Route::get('/callback', [DiscordController::class, 'handle'])
+        ->name('larascord.login');
+
+    Route::redirect('/refresh-token', '/login')
+        ->name('larascord.refresh_token');
+});