<?php

use App\Http\Controllers\DocsController;
use App\Http\Controllers\FilterController;
use Illuminate\Support\Facades\Config;
use Illuminate\Support\Facades\Route;

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::get('docs/swagger', [DocsController::class, 'swagger']);

// Probably not actually used, just added for build process, review later
$entry_url = Config::get('filter.url_entrypoint');
Route::get("{$entry_url}{any}", [FilterController::class, 'index'])->where('any', '.*')->name('filter_page');
