Ignore:
Timestamp:
11/23/22 12:15:28 (20 months ago)
Author:
unknown <mlviktor23@…>
Branches:
main
Children:
af801e3, e49d1b6
Parents:
c68150f
Message:

moderation/reporting api in spring boot

File:
1 edited

Legend:

Unmodified
Added
Removed
  • reactapp/src/Pages/Professor.js

    rc68150f r3b6962d  
    3939
    4040  useEffect(() => {
    41     const url = `http://192.168.0.17:8080/public/professor/${params.professorId}`;
     41    const url = `http://192.168.0.19:8080/public/professor/${params.professorId}`;
    4242
    4343    const fetchProfessor = async () => {
     
    6060    if (auth) {
    6161      setPostModalDisplay("block");
     62      document.body.style.overflowY = "hidden";
    6263    } else {
    6364      navigate("/login");
     
    6768  const handleModalCloseClick = () => {
    6869    setPostModalDisplay("none");
     70    document.body.style.overflowY = "auto";
    6971  };
    7072
     
    7476    if (!postContent.length < 1) {
    7577      const response = await axios(
    76         `http://192.168.0.17:8080/secure/professor/${params.professorId}/addOpinion`,
     78        `http://192.168.0.19:8080/secure/professor/${params.professorId}/addOpinion`,
    7779        {
    7880          method: "post",
     
    152154                    rows="8"
    153155                    cols="100"
     156                    spellCheck={false}
    154157                    value={postContent}
    155158                    onChange={handleContentChange}
Note: See TracChangeset for help on using the changeset viewer.