summaryrefslogtreecommitdiffhomepage
path: root/src/components/Blogs.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/Blogs.jsx')
-rw-r--r--src/components/Blogs.jsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/Blogs.jsx b/src/components/Blogs.jsx
index f52f286..2dc8f27 100644
--- a/src/components/Blogs.jsx
+++ b/src/components/Blogs.jsx
@@ -6,7 +6,7 @@ const Blogs = () => {
const [blogs, setBlogs] = useState([]);
useEffect(() => {
- const url = "/api/v1/blogs/index";
+ const url = `${import.meta.env.VITE_API_TITLE}/api/v1/blogs/index`;
fetch(url).then((response) => {
if (response.ok) {
return response.json();