name('home'); Route::get('/categories', [CategoryController::class, 'index'])->name('categories.index'); Route::get('/category/{slug}', [CategoryController::class, 'show'])->name('categories.show'); Route::get('/tags', [TagController::class, 'index'])->name('tags.index'); Route::get('/tag/{slug}', [TagController::class, 'show'])->name('tags.show'); Route::get('/product/{slug}', [ProductController::class, 'show'])->name('products.show'); Route::get('/articles', [ArticleController::class, 'index'])->name('articles.index'); Route::get('/article/{slug}', [ArticleController::class, 'show'])->name('articles.show'); Route::get('/about', [PageController::class, 'about'])->name('about'); Route::get('/contact', [ContactController::class, 'show'])->name('contact.show'); Route::post('/contact', [ContactController::class, 'store'])->name('contact.store'); Route::get('/search', [SearchController::class, 'index'])->name('search.index'); Route::get('/out/{slug}', [OutboundController::class, 'redirect'])->name('outbound'); Route::get('/ads/{ad}', [AdController::class, 'redirect'])->name('ads.redirect'); Route::post('/comments', [CommentController::class, 'store'])->name('comments.store'); Route::post('/comments/{comment}/like', [CommentController::class, 'like'])->name('comments.like'); Route::get('/captcha', [CommentController::class, 'captcha'])->name('comments.captcha'); Route::get('/sitemap.xml', [SitemapController::class, 'index'])->name('sitemap'); Route::get('/robots.txt', function () { $content = "User-agent: *\nDisallow: /admin\nSitemap: " . url('/sitemap.xml'); return response($content, 200)->header('Content-Type', 'text/plain'); });