<?php

namespace App\Http\Controllers\Api;

use App\Http\Controllers\Controller;
use App\Http\Controllers\Frontend\AiController;
use Illuminate\Http\Request;

class AiApiController extends Controller
{
    private AiController $ai;

    public function __construct(AiController $ai)
    {
        $this->ai = $ai;
    }

    public function chat(Request $request)
    {
        return $this->ai->chat($request);
    }

    public function recommend(Request $request)
    {
        return $this->ai->recommend($request);
    }

    public function similar(Request $request)
    {
        return $this->ai->similar($request);
    }

    public function search(Request $request)
    {
        return $this->ai->search($request);
    }
}
