I have been using Metronic 8 Demo4 React version. When I hit npm start, it opens up the dashboard, but today this log in page has come up and when I entered the pre-given credentials, I'm unable to log in. The error reads "POST https://preview.keenthemes.com/metronic8/laravel/api/login 404 (Not Found). Request failed with status code 404". I don't understand as it was working fine till yesterday.
We have fixed the demo API. Could you please retry if it's working?
Thanks
Yes, it's working now. Thanks.
Hi,
Glad to hear that. Please don't hesitate to reach out if you need anything more from us.
Regards,
Lauris Stepanovs,
Keenthemes Support Team
Hi,
Sorry for the inconvenience. We are aware of the issue you are facing due to a problem with the demo API.
Please note that the React version should still work locally on your machine without relying on the demo API.
We apologize for any inconvenience caused, and we are working on resolving the demo API issue as soon as possible. If you have any further questions or need assistance with other aspects of Metronic, please let us know.
Thanks
Oh, but I'm still not able to log in with the demo credentials. Could you tell me a way to directly land upon the dashboard without going through the login page?
const AppRoutes = () => {
const { currentUser } = useAuth();
return (<BrowserRouter basename={PUBLIC_URL}>
<Routes>
<Route element={<App />}>
<Route path="error/*" element={<ErrorsPage />}/>
<Route path="logout" element={<Logout />}/>
{currentUser ? (<>
<Route path="/*" element={<PrivateRoutes />}/>
<Route index element={<Navigate to="/dashboard"/>}/>
</>) : (<>
<Route path="auth/*" element={<AuthPage />}/>
<Route path="*" element={<Navigate to="/auth"/>}/>
</>)}
</Route>
</Routes>
</BrowserRouter>);
};