change api route

This commit is contained in:
2023-12-19 15:46:55 +03:30
parent 24e88fc551
commit e841351399
2 changed files with 7 additions and 2 deletions

View File

@@ -15,6 +15,7 @@ import {useState} from "react";
import DoneIcon from '@mui/icons-material/Done';
import {NextLinkComposed} from "@witel/webapp-builder/dist/utils/linkRouting";
import SvgDone from "@/core/components/svgs/SvgDone";
import {SEND_LOAN_REQUEST_NAVGAN} from "@/core/data/apiRoutes";
const AddFormComponent = () => {
const t = useTranslations();
@@ -127,7 +128,7 @@ const AddFormComponent = () => {
formData.append("education_id", values.education_id);
formData.append("occupation_id", values.occupation_id);
await requestServer("http://192.168.1.127:8001/api/navgan/loan/store", "post", {
await requestServer(SEND_LOAN_REQUEST_NAVGAN, "post", {
auth: true, notification: true, data: {
telephone_number: values.telephone_number,
vehicle_type: values.vehicle_type,