Skip to content
Snippets Groups Projects
Commit 353d4b63 authored by Josh Everett's avatar Josh Everett
Browse files

Use notification service base url

parent 6888bac3
No related branches found
No related tags found
No related merge requests found
...@@ -12,6 +12,7 @@ import { CloseIcon } from "@chakra-ui/icons"; ...@@ -12,6 +12,7 @@ import { CloseIcon } from "@chakra-ui/icons";
import NavigationBar from "../../components/navbar/navbar"; import NavigationBar from "../../components/navbar/navbar";
const NotificationsPage = () => { const NotificationsPage = () => {
const baseUrl = (process.env.REACT_APP_NOTIFICATION_SERVICE_ENDPOINT);
const [loading, setLoading] = useState(true); const [loading, setLoading] = useState(true);
const [notifications, setNotifications] = useState([]); const [notifications, setNotifications] = useState([]);
const [error, setError] = useState(null); const [error, setError] = useState(null);
...@@ -23,7 +24,7 @@ const NotificationsPage = () => { ...@@ -23,7 +24,7 @@ const NotificationsPage = () => {
const fetchNotifications = async () => { const fetchNotifications = async () => {
try { try {
const response = await fetch("/notification/info", { const response = await fetch(`${baseUrl}/notification/info`, {
headers: { headers: {
Authorization: `Bearer ${localStorage.getItem("token")}`, Authorization: `Bearer ${localStorage.getItem("token")}`,
}, },
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment