Authenticated Custom Pages vs resources
Hey all,
I am continuing a web site using the "fine foods MUI theme" as base.
The example already contains all resources to /products, orthers, etc.
But the are not Authenticated, if delete the Token from localstorage for example, i can continue navigating the site.
I read here: https://refine.dev/docs/advanced-tutorials/custom-pages/
const AuthenticatedCustomPage = () => {
return (
<Authenticated>
<CustomPage /> {//This will change to receive any Component}
</Authenticated>
);
};
But i cant figure out how to make use of this in routes if i already have the resources defined.
If i delete the /products resource it disapears from the Side panel.
By the way, in resources is defined wat endpoint to use in the components defined inside list, create, show?
Thanks in advance!
I am continuing a web site using the "fine foods MUI theme" as base.
The example already contains all resources to /products, orthers, etc.
But the are not Authenticated, if delete the Token from localstorage for example, i can continue navigating the site.
I read here: https://refine.dev/docs/advanced-tutorials/custom-pages/
const AuthenticatedCustomPage = () => {
return (
<Authenticated>
<CustomPage /> {//This will change to receive any Component}
</Authenticated>
);
};
But i cant figure out how to make use of this in routes if i already have the resources defined.
If i delete the /products resource it disapears from the Side panel.
By the way, in resources is defined wat endpoint to use in the components defined inside list, create, show?
Thanks in advance!
This document is related to how to create custom pages for react applications. Since Nextjs and Remix have a file system based router built on the page concept, you can create your custom pages under the pages or routes folder.

