**Add public API documentation access and navigation links**

- 📚 Added "API Dokumentation" link to the sidebar and header navigation.
- 🔓 Defined `viewApiDocs` gate for public access to API documentation.
-  Added feature tests for API documentation route accessibility and OpenAPI document serving.
This commit is contained in:
HolgerHatGarKeineNode
2026-06-08 01:34:00 +02:00
parent d1b7352fca
commit 7510946f38
4 changed files with 27 additions and 4 deletions
+3
View File
@@ -10,6 +10,7 @@ use Illuminate\Foundation\Events\DiagnosingHealth;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Date;
use Illuminate\Support\Facades\Event;
use Illuminate\Support\Facades\Gate;
use Illuminate\Support\Facades\RateLimiter;
use Illuminate\Support\Facades\Route;
use Illuminate\Support\Facades\URL;
@@ -37,6 +38,8 @@ class AppServiceProvider extends ServiceProvider
{
$this->configureRateLimiting();
Gate::define('viewApiDocs', fn (?Authenticatable $user = null): bool => true);
if ($this->app->environment('production')) {
URL::forceScheme('https');
}