From ad50102c426cb8f422383b058356e6f6b2d62109 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=9Cmit=20Tun=C3=A7?= Date: Tue, 23 Jun 2026 10:57:52 +0300 Subject: [PATCH] feat: add localized routes for privacy policy pages --- routes/web.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/routes/web.php b/routes/web.php index 823ba76..7edf8e8 100644 --- a/routes/web.php +++ b/routes/web.php @@ -158,8 +158,17 @@ Route::get('/sitemap.xml', [\App\Http\Controllers\SitemapController::class, 'ind Route::get('/teklif/{slug}', [\App\Http\Controllers\ProposalController::class, 'show'])->name('proposals.show'); Route::post('/teklif/{slug}/action', [\App\Http\Controllers\ProposalController::class, 'action'])->name('proposals.action'); +// Privacy Policy Alternatives +Route::get('/privacy-policy', function () { + return app(PageController::class)->show('privacy'); +}); +Route::get('/gizlilik-politikasi', function () { + return app(PageController::class)->show('privacy'); +}); + // Nested Pages (Parent/Child) Route::get('/{parentSlug}/{slug}', [PageController::class, 'showNested'])->name('page.show_nested'); // Pages (en sonda olmalı - catch-all) Route::get('/{slug}', [PageController::class, 'show'])->name('page.show'); +