generated from dwd/boilarplate-remix-tailwind-antd
s1
This commit is contained in:
@@ -19,7 +19,7 @@ const App: React.FC = () => {
|
||||
const [submitLoading, setSubmitLoading] = useState<boolean>(false);
|
||||
|
||||
useEffect(() => {
|
||||
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 was not ok');
|
||||
@@ -50,7 +50,7 @@ const App: React.FC = () => {
|
||||
};
|
||||
setSubmitLoading(true);
|
||||
try {
|
||||
const response = await fetch(`https://api.teachertrainingkolkata.in/api/create-quiz`, {
|
||||
const response = await fetch(`http://localhost:5174/api/create-quiz`, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
|
||||
Reference in New Issue
Block a user