feat: Add initial API status page, fullscreen layout, robots.txt, and anti-crawler middleware configuration.

This commit is contained in:
dyzulk
2026-01-01 17:57:27 +07:00
parent 5ae3c5bde5
commit 025286101e
4 changed files with 10 additions and 3 deletions

View File

@@ -18,6 +18,13 @@ return Application::configure(basePath: dirname(__DIR__))
$middleware->alias([
'admin' => \App\Http\Middleware\AdminMiddleware::class,
]);
// Anti-crawler header
$middleware->append(function ($request, $next) {
$response = $next($request);
$response->headers->set('X-Robots-Tag', 'noindex, nofollow, noarchive');
return $response;
});
})
->withExceptions(function (Exceptions $exceptions): void {
//