Fix: AI Blog Assistant retry logic and Subdomain routing for Akademi

This commit is contained in:
Muhammet Güler
2026-02-16 14:55:06 +03:00
parent 0fa8e4e435
commit 7101f7878a
10 changed files with 458 additions and 1 deletions
+8
View File
@@ -7,6 +7,11 @@ use App\Http\Controllers\TemplatePreviewController;
use App\Http\Controllers\Api\SiteTranslationController;
use App\Models\Page;
// Subdomain Routes
Route::domain('akademi.truncgil.com.tr')->group(function () {
Route::get('/', [PageController::class, 'showAkademi']);
});
// Debug Route - Veritabanı kontrolü
Route::redirect('/index', '/', 301);
Route::redirect('/index.php', '/', 301);
@@ -126,5 +131,8 @@ Route::get('/logo-preview', function (Illuminate\Http\Request $request) {
</html>";
})->name('logo.preview');
// 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');