diff --git a/app/components/ClassMates.tsx b/app/components/ClassMates.tsx index 37cf56e..b940706 100644 --- a/app/components/ClassMates.tsx +++ b/app/components/ClassMates.tsx @@ -14,7 +14,7 @@ export default function classMatesDirectory() { useEffect(() => { - fetch('https://api.teachertrainingkolkata.in//api/class-mates') + fetch('https://api.teachertrainingkolkata.in/api/class-mates') .then(res => { if (!res.ok) { throw new Error('Network response was not ok'); diff --git a/app/components/ContinueLearning.tsx b/app/components/ContinueLearning.tsx index 0c918e7..e6f83ee 100644 --- a/app/components/ContinueLearning.tsx +++ b/app/components/ContinueLearning.tsx @@ -14,7 +14,7 @@ export default function ContinueLearning() { useEffect(() => { - fetch('https://api.teachertrainingkolkata.in//api/continue-learning') + fetch('https://api.teachertrainingkolkata.in/api/continue-learning') .then(res => { if (!res.ok) { throw new Error('Network response was not ok'); @@ -22,6 +22,7 @@ export default function ContinueLearning() { return res.json(); }) .then(data => { + console.log(data) setData(data); setLoading(false); }) diff --git a/app/components/KnowledgeQuests.tsx b/app/components/KnowledgeQuests.tsx index 9cc7202..ebd1fd6 100644 --- a/app/components/KnowledgeQuests.tsx +++ b/app/components/KnowledgeQuests.tsx @@ -14,7 +14,7 @@ export default function KnowledgeQuests() { useEffect(() => { - fetch('https://api.teachertrainingkolkata.in//api/knowledge-quests') + fetch('https://api.teachertrainingkolkata.in/api/knowledge-quests') .then(res => { if (!res.ok) { throw new Error('Network response was not ok'); diff --git a/app/components/KnowledgeQuestsPageContent.tsx b/app/components/KnowledgeQuestsPageContent.tsx index b69521b..913aa1c 100644 --- a/app/components/KnowledgeQuestsPageContent.tsx +++ b/app/components/KnowledgeQuestsPageContent.tsx @@ -20,8 +20,8 @@ export default function Index() { const fetchData = async () => { try { const [allResponse, completedResponse] = await Promise.all([ - fetch('https://api.teachertrainingkolkata.in//api/all-assesment'), - fetch('https://api.teachertrainingkolkata.in//api/complete-assesment') + fetch('https://api.teachertrainingkolkata.in/api/all-assesment'), + fetch('https://api.teachertrainingkolkata.in/api/complete-assesment') ]); if (!allResponse.ok || !completedResponse.ok) { diff --git a/app/components/ProgressReview copy.tsx b/app/components/ProgressReview copy.tsx index 62ba236..7ed3ef6 100644 --- a/app/components/ProgressReview copy.tsx +++ b/app/components/ProgressReview copy.tsx @@ -33,7 +33,7 @@ export default function Index() { const [error, setError] = useState(null); useEffect(() => { - fetch('https://api.teachertrainingkolkata.in//api/quiz-module') + fetch('https://api.teachertrainingkolkata.in/api/quiz-module') .then((res) => { if (!res.ok) { throw new Error('Network response was not ok'); diff --git a/app/components/TopPerformers.tsx b/app/components/TopPerformers.tsx index 83fe6fd..043c571 100644 --- a/app/components/TopPerformers.tsx +++ b/app/components/TopPerformers.tsx @@ -16,7 +16,7 @@ export default function TopPerformers() { const [error, setError] = useState(null); useEffect(() => { - fetch('https://api.teachertrainingkolkata.in//api/top-performers') + fetch('https://api.teachertrainingkolkata.in/api/top-performers') .then(res => { if (!res.ok) { throw new Error('Network response was not ok'); diff --git a/app/routes/sign-in.tsx b/app/routes/sign-in.tsx index 496a085..05c89d5 100644 --- a/app/routes/sign-in.tsx +++ b/app/routes/sign-in.tsx @@ -13,7 +13,7 @@ export default function SignIn() { password, }; try { - const response = await fetch('https://api.teachertrainingkolkata.in//api/sign-in', { + const response = await fetch('https://api.teachertrainingkolkata.in/api/sign-in', { method: 'POST', headers: { 'Content-Type': 'application/json',