Extend integrations hub with more channels, caching, and refresh.
Cache per-store status for five minutes, add TikTok/Reddit/Meta cards, and let merchants refresh without reloading WordPress on every visit. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -63,6 +63,7 @@ Route::middleware(['auth', 'platform.session'])->group(function () {
|
||||
Route::post('/stores/switch', StoreSwitchController::class)->name('woo.stores.switch');
|
||||
Route::delete('/stores/{store}', [StoreController::class, 'destroy'])->name('woo.stores.destroy');
|
||||
Route::get('/integrations', [IntegrationController::class, 'index'])->name('woo.integrations.index');
|
||||
Route::post('/integrations/refresh', [IntegrationController::class, 'refresh'])->name('woo.integrations.refresh');
|
||||
Route::get('/settings', [SettingsController::class, 'edit'])->name('woo.settings');
|
||||
|
||||
Route::post('/ai/chat', [AiController::class, 'chat'])->middleware('throttle:30,1')->name('woo.ai.chat');
|
||||
|
||||
Reference in New Issue
Block a user