Revert to connection to online backend to prepare for deployment

This commit is contained in:
keannu125 2023-03-29 20:10:16 +08:00
parent d0879f7eec
commit 9c512829cf
2 changed files with 1 additions and 4 deletions

View file

@ -10,7 +10,7 @@ import {
// Note APIs
const instance = axios.create({
baseURL: "http://localhost:8000",
baseURL: "https://keannu125.pythonanywhere.com",
});
export function GetNotes() {

View file

@ -1,13 +1,10 @@
import * as React from "react";
import styles from "../../styles";
import { useNavigate } from "react-router-dom";
import Note from "../Note/Note";
import { Button } from "@mui/material";
import { useQuery } from "react-query";
import { GetPublicNotes } from "../Api/Api";
import { useSelector } from "react-redux";
import { NoteProps } from "../../Interfaces/Interfaces";
import { RootState } from "../../Features/Redux/Store/Store";
import PublicNote from "../PublicNote/Note";
export default function PublicNotes() {