feat(api): add dashboard API endpoints (kpis, ingresos-egresos, resumen-fiscal, alertas)
This commit is contained in:
@@ -4,6 +4,7 @@ import helmet from 'helmet';
|
||||
import { env } from './config/env.js';
|
||||
import { errorMiddleware } from './middlewares/error.middleware.js';
|
||||
import { authRoutes } from './routes/auth.routes.js';
|
||||
import { dashboardRoutes } from './routes/dashboard.routes.js';
|
||||
|
||||
const app = express();
|
||||
|
||||
@@ -25,6 +26,7 @@ app.get('/health', (req, res) => {
|
||||
|
||||
// API Routes
|
||||
app.use('/api/auth', authRoutes);
|
||||
app.use('/api/dashboard', dashboardRoutes);
|
||||
|
||||
// Error handling
|
||||
app.use(errorMiddleware);
|
||||
|
||||
Reference in New Issue
Block a user