3 use App\Http\Controllers\DiscordController;
4 use App\Http\Controllers\SitemapXmlController;
5 use App\Http\Controllers\TechniqueController;
7 use App\Models\Technique;
8 use Illuminate\Support\Facades\Route;
11 |--------------------------------------------------------------------------
13 |--------------------------------------------------------------------------
15 | Here is where you can register web routes for your application. These
16 | routes are loaded by the RouteServiceProvider within a group which
17 | contains the "web" middleware group. Now create something great!
21 Route::get('/sitemap.xml', [SitemapXmlController::class, 'index']);
23 Route::get('/dungeons/{name}', function($name) {
24 return app()->call('App\Http\Controllers\TechniqueController@web', ['type' => 'dungeon', 'name' => $name]);
27 Route::get('/locations/{name}', function($name) {
28 return app()->call('App\Http\Controllers\TechniqueController@web', ['type' => 'location', 'name' => $name]);
31 Route::get('/modes/{name}', function($name) {
32 return app()->call('App\Http\Controllers\TechniqueController@web', ['type' => 'mode', 'name' => $name]);
35 Route::get('/rulesets/{name}', function($name) {
36 return app()->call('App\Http\Controllers\TechniqueController@web', ['type' => 'ruleset', 'name' => $name]);
39 Route::get('/tech/{name}', function($name) {
40 return app()->call('App\Http\Controllers\TechniqueController@web', ['type' => 'tech', 'name' => $name]);
43 Route::get('/twitch/guessing-game-leaderboard/{channel:twitch_id}/{type}', 'App\Http\Controllers\ChannelController@getGuessingGameLeaderboard');
45 Route::view('/{path?}', 'app')->where('path', '.*');
47 Route::group(['prefix' => config('larascord.prefix'), 'middleware' => ['web']], function() {
48 Route::get('/callback', [DiscordController::class, 'handle'])
49 ->name('larascord.login');
51 Route::redirect('/refresh-token', '/login')
52 ->name('larascord.refresh_token');