feat(dashboard): add aggregated dashboard stats API, robust logout, and warehouse seeders
deploy-chabokan / deploy (push) Canceled after 0s

This commit is contained in:
2026-08-30 09:29:21 +03:30
parent 9b88b342ad
commit 576ccf5421
8 changed files with 457 additions and 11 deletions
@@ -0,0 +1,11 @@
const catchAsync = require('../../globalErrorHandler/catchAsync')
const dashboardService = require('./dashboardService')
exports.getDashboardStats = catchAsync(async (req, res, next) => {
const stats = await dashboardService.getDashboardStats()
res.status(200).json({
status: 'success',
data: stats,
})
})