Skip to content

Commit

Permalink
Update Consultation.js
Browse files Browse the repository at this point in the history
corrigindo requisição
--fix: erro com o cors
  • Loading branch information
joannestephany authored Nov 25, 2024
1 parent 0eed198 commit ad2f422
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/screens/Consultation/Consultation.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import React, { useEffect, useState } from "react";
import { Container, useMediaQuery } from "@material-ui/core";
import Select from "react-select";

import api from "../../services/api";
import axios from "axios";

import { BoxConsultation } from "../../components/Boxes";
import List from "../../components/List";
Expand All @@ -21,7 +21,7 @@ const Consultation = ({ setIdSchool, idSchool }) => {
useEffect(() => {
const callFunction = async () => {
try {
const result = await api.get(
const result = await axios.get(
"http://127.0.0.1:5001/br-ipti-visao/us-central1/fowardedForConsultation"
);
setConsultation(result.data);
Expand Down

0 comments on commit ad2f422

Please sign in to comment.