changed ports
This commit is contained in:
@@ -48,7 +48,9 @@ const Landingpage: React.FC = () => {
|
|||||||
const fetchLoans = async () => {
|
const fetchLoans = async () => {
|
||||||
setIsLoading(true);
|
setIsLoading(true);
|
||||||
try {
|
try {
|
||||||
const res = await fetch("http://localhost:8002/apiV2/allLoans");
|
const res = await fetch(
|
||||||
|
"https://backend.insta.the1s.de/apiV2/allLoans"
|
||||||
|
);
|
||||||
const data = await res.json();
|
const data = await res.json();
|
||||||
if (Array.isArray(data)) {
|
if (Array.isArray(data)) {
|
||||||
setLoans(data);
|
setLoans(data);
|
||||||
|
Reference in New Issue
Block a user