add projet

This commit is contained in:
root
2026-03-05 12:29:37 -05:00
parent 8d1eef8ba8
commit 23b7db1107
9109 changed files with 1106501 additions and 73 deletions
Executable
+18
View File
@@ -0,0 +1,18 @@
<?php
use Illuminate\Support\Facades\Route;
use App\Http\Controllers\View\DashboardRedirectController;
Route::redirect('/', '/api/docs')->name('docs.home');
Route::view('/api/docs', 'docs.swagger')->name('docs.swagger');
Route::get('/dashboard', [DashboardRedirectController::class, 'dashboard'])->name('dashboard.redirect');
Route::get('/api/documentation/swagger.json', function () {
$path = resource_path('docs/openapi.json');
abort_unless(is_file($path), 404);
return response()->file($path, [
'Content-Type' => 'application/json',
'Cache-Control' => 'public, max-age=300',
]);
})->name('docs.swagger-json');