Skip to content

Commit

Permalink
Robots.txt from Magento config (#408)
Browse files Browse the repository at this point in the history
  • Loading branch information
royduin authored Jan 23, 2024
1 parent 2bb05ee commit 0422bdf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions routes/web.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
<?php

use Rapidez\Core\Facades\Rapidez;
use Rapidez\Core\Http\Controllers\FallbackController;
use Rapidez\Core\Http\Controllers\HealthcheckController;
use Rapidez\Core\Http\Controllers\SearchController;
use Rapidez\Core\Http\Middleware\AuthenticateHealthCheck;

Route::get('healthcheck', HealthcheckController::class)->middleware(AuthenticateHealthCheck::class);
Route::get('robots.txt', fn () => response(Rapidez::config('design/search_engine_robots/custom_instructions'))
->header('Content-Type', 'text/plain; charset=UTF-8'));

Route::middleware('web')->group(function () {
Route::view('cart', 'rapidez::cart.overview')->name('cart');
Expand Down

0 comments on commit 0422bdf

Please sign in to comment.