feat(auth): implement email/password login form

This commit is contained in:
dhinesh-m24
2026-01-28 15:33:05 +05:30
parent 959a8c41e9
commit 6e81a062ab
18 changed files with 4287 additions and 8 deletions

30
apps/web/src/routes.tsx Normal file
View File

@@ -0,0 +1,30 @@
import React from 'react';
import { BrowserRouter as Router, Routes, Route, Navigate } from 'react-router-dom';
import Login from './features/auth/Login';
import Dashboard from './features/dashboard/Dashboard';
/**
* AppRoutes Component
* Defines the main routing structure of the application.
* Groups routes by Layout (Public vs App).
*/
const AppRoutes: React.FC = () => {
return (
<Router>
<Routes>
{/* Public Routes */}
<Route
path="/login"
element={
<Login />
}
/>
<Route path="/dashboard" element={<Dashboard />} />
<Route path="*" element={<Navigate to="/login" replace />} />
</Routes>
</Router>
);
};
export default AppRoutes;