|
|
|
@ -27,7 +27,7 @@ const router = createBrowserRouter([
|
|
|
|
path: "/article/:id",
|
|
|
|
path: "/article/:id",
|
|
|
|
element: <Article />,
|
|
|
|
element: <Article />,
|
|
|
|
loader: async ({ params }) => {
|
|
|
|
loader: async ({ params }) => {
|
|
|
|
return fetch(`https://strapi.iamonlyherefortheicecream.gq/api/articles?populate=*&filters[id][$eq]=${params.id}`);
|
|
|
|
return fetch(`http://strapi.litmusmap.ru/api/articles?populate=*&filters[id][$eq]=${params.id}`);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
])
|
|
|
|
])
|
|
|
|
|