Skip to content

Commit cef5963

Browse files
committed
centralizing endpoint to utils/api.js
1 parent b365edc commit cef5963

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

frontend/src/components/Characters.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { useState, useEffect } from "react";
2+
import { apiRequest } from "./utils/api"; // Import apiRequest for API calls
23
import { getStoredToken } from "./utils/auth";
34
import { jwtDecode } from "jwt-decode"; // Import jwtDecode to decode the JWT token
45
import Button from "../components/buttons/Button";

0 commit comments

Comments
 (0)