| @@ -82,13 +82,16 @@ | ||
| 82 | 82 | // ADMIN & SETTINGS |
| 83 | 83 | // ============================================= |
| 84 | 84 | \Yatra\Controllers\SettingsController::class, |
| 85 | 85 | \Yatra\Controllers\ModuleController::class, |
| 86 | + // White Label routes live in yatra-pro/app/Modules/WhiteLabel/Controllers/ | |
| 87 | + // and are registered by Pro's WhiteLabelModule::boot() at rest_api_init. | |
| 86 | 88 | \Yatra\Controllers\ReportsController::class, |
| 87 | 89 | \Yatra\Controllers\ToolsController::class, |
| 88 | 90 | \Yatra\Controllers\SampleDataController::class, |
| 89 | 91 | \Yatra\Controllers\UsageTrackingController::class, |
| 90 | 92 | \Yatra\Controllers\NoticeController::class, |
| 93 | + \Yatra\Controllers\NotificationCountsController::class, // Sidebar "new since last seen" badges | |
| 91 | 94 | |
| 92 | 95 | ]; |
| 93 | 96 | |
| 94 | 97 | // Debug: Check if BookingsController is in the array |
| @@ -114,5 +117,10 @@ | ||
| 114 | 117 | } |
| 115 | 118 | } catch (\Throwable $e) { |
| 116 | 119 | continue; |
| 117 | 120 | } |
| 121 | +} | |
| 122 | + | |
| 123 | +try { | |
| 124 | + (new \Yatra\Controllers\BlockEditorChoicesController())->register_routes(); | |
| 125 | +} catch (\Throwable $e) { | |
| 118 | 126 | } |