fix-avoid-cross-domain-xhr (#22008)

This commit is contained in:
Hariom Balhara authored and GitHub committed 2025-06-24 15:08:43 +00:00
1 parent cb96a56960
commit 6dad0e7679
1 file changed
+3 -6
@@ -32,12 +32,9 @@ export const useApiV2AvailableSlots = ({
],
queryFn: () => {
return axios
.get<ApiResponse<GetAvailableSlotsResponse>>(
`${process.env.NEXT_PUBLIC_API_V2_URL}/slots/available`,
{
params: rest,
}
)
.get<ApiResponse<GetAvailableSlotsResponse>>("/api/v2/slots/available", {
params: rest,
})
.then((res) => {
if (res.data.status === "success") {
return (res.data as ApiSuccessResponse<GetAvailableSlotsResponse>).data;