feat: AI commentary skeleton loading - separate async endpoint
Deploy Iddaai Frontend / build-and-deploy (push) Successful in 2m20s
Deploy Iddaai Frontend / build-and-deploy (push) Successful in 2m20s
This commit is contained in:
@@ -65,6 +65,14 @@ const checkHealth = () => {
|
||||
});
|
||||
};
|
||||
|
||||
const getCommentary = (matchId: string) => {
|
||||
return apiRequest<ApiResponse<{ commentary: string | null }>>({
|
||||
url: `/predictions/${matchId}/commentary`,
|
||||
client: "core",
|
||||
method: "get",
|
||||
});
|
||||
};
|
||||
|
||||
const generateSmartCoupon = (body: SmartCouponRequestDto) => {
|
||||
return apiRequest<ApiResponse<SmartCouponResponseDto>>({
|
||||
url: "/predictions/smart-coupon",
|
||||
@@ -82,4 +90,5 @@ export const predictionsService = {
|
||||
getHistory,
|
||||
checkHealth,
|
||||
generateSmartCoupon,
|
||||
getCommentary,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user