feat(api): add dashboard API endpoints (kpis, ingresos-egresos, resumen-fiscal, alertas)

This commit is contained in:
Consultoria AS
2026-01-22 02:19:22 +00:00
parent 5bd5f9cef9
commit 4d0d23c642
4 changed files with 209 additions and 0 deletions

View File

@@ -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);