generated from dwd/boilarplate-remix-tailwind-antd
s1
This commit is contained in:
@@ -46,7 +46,7 @@ export default function Index() {
|
||||
const [moduleList, setModuleList] = useState<ModuleList[]>([]);
|
||||
|
||||
useEffect(() => {
|
||||
fetch(`https://api.teachertrainingkolkata.in/api/question-list`)
|
||||
fetch(`http://localhost:5174/api/question-list`)
|
||||
.then((res) => {
|
||||
if (!res.ok) {
|
||||
throw new Error('Network Response not ok');
|
||||
@@ -68,7 +68,7 @@ useEffect(() => {
|
||||
try {
|
||||
const moduleData = await Promise.all(
|
||||
questionList.map((question) =>
|
||||
fetch(`https://api.teachertrainingkolkata.in/api/quiz-module-list`)
|
||||
fetch(`http://localhost:5174/api/quiz-module-list`)
|
||||
.then((res) => {
|
||||
if (!res.ok) {
|
||||
throw new Error('Network Response not ok');
|
||||
@@ -94,7 +94,7 @@ useEffect(() => {
|
||||
|
||||
|
||||
useEffect(() => {
|
||||
fetch('https://api.teachertrainingkolkata.in/api/quiz-module')
|
||||
fetch('http://localhost:5174/api/quiz-module')
|
||||
.then((res) => {
|
||||
if (!res.ok) {
|
||||
throw new Error('Network response was not ok');
|
||||
|
||||
Reference in New Issue
Block a user