swagger deployed at /swagger

This commit is contained in:
Clément
2025-06-10 21:17:33 +02:00
parent 6e2fdb5087
commit b0765e8aac
87 changed files with 594 additions and 2 deletions

View File

@@ -0,0 +1,18 @@
<?php
namespace App\Providers;
use Illuminate\Support\Facades\Gate;
use Illuminate\Support\ServiceProvider;
class SwaggerUiServiceProvider extends ServiceProvider
{
public function boot() : void
{
Gate::define('viewSwaggerUI', function ($user = null) {
return in_array(optional($user)->email, [
//
]);
});
}
}