the browser-facing portion of osu!
at master 26 lines 623 B view raw
1<?php 2 3// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0. 4// See the LICENCE file in the repository root for full licence text. 5 6namespace App\Providers; 7 8use Illuminate\Support\ServiceProvider; 9use Route; 10 11class AdditionalDuskServiceProvider extends ServiceProvider 12{ 13 /** 14 * Bootstrap the application services. 15 * 16 * @return void 17 */ 18 public function boot() 19 { 20 Route::get('/_dusk/verify', function () { 21 \Session::instance()->markVerified(); 22 23 return response(null, 204); 24 })->middleware('web'); 25 } 26}