Fix Afia AI assistant for Ladill Link.
Deploy Ladill Link / deploy (push) Successful in 31s

Wire the chat route and Link-scoped system prompt, include the Afia panel in the main layout, and point the UI at link.afia.chat instead of the copied QR Plus route.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
isaacclad
2026-06-27 14:31:00 +00:00
co-authored by Cursor
parent f1fe749934
commit 5a3631cd2e
8 changed files with 127 additions and 37 deletions
+3
View File
@@ -1,6 +1,7 @@
<?php
use App\Http\Controllers\Auth\SsoLoginController;
use App\Http\Controllers\Link\AfiaController;
use App\Http\Controllers\Link\AnalyticsController;
use App\Http\Controllers\Link\CustomDomainController;
use App\Http\Controllers\Link\LinkController;
@@ -50,6 +51,8 @@ Route::middleware(['auth', 'platform.session'])->group(function () {
Route::patch('/links/{link}', [LinkController::class, 'update'])->name('user.links.update');
Route::delete('/links/{link}', [LinkController::class, 'destroy'])->name('user.links.destroy');
Route::post('/afia/chat', [AfiaController::class, 'chat'])->name('link.afia.chat');
Route::get('/wallet', fn () => redirect()->away(ladill_account_url('/wallet')))->name('account.wallet');
Route::get('/billing', fn () => redirect()->away(ladill_account_url('/billing')))->name('account.billing');
});