Skip to content

Commit

Permalink
try 1 for api issue
Browse files Browse the repository at this point in the history
  • Loading branch information
devvsakib committed Jul 28, 2024
1 parent cd89789 commit 44780b4
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 2 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/pages/Doc/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const DocList = () => {
useEffect(() => {
const fetchDocs = async () => {
try {
const response = await fetch('/docs/index.json');
const response = await fetch('/posts/index.json');
if (!response.ok) {
throw new Error(`HTTP error! status: ${response.status}`);
}
Expand Down
2 changes: 1 addition & 1 deletion src/pages/Doc/single doc/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const DocDetail = () => {
useEffect(() => {
const fetchContent = async () => {
try {
const response = await fetch(`/docs/${slug}.md`);
const response = await fetch(`/posts/${slug}.md`);
if (!response.ok) {
throw new Error(`Failed to fetch content: ${response.statusText}`);
}
Expand Down

0 comments on commit 44780b4

Please sign in to comment.