feat(dashboard): add aggregated dashboard stats API, robust logout, and warehouse seeders
deploy-chabokan / deploy (push) Canceled after 0s
deploy-chabokan / deploy (push) Canceled after 0s
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
const express = require('express')
|
||||
const dashboardController = require('./dashboardController')
|
||||
const loginCheck = require('../../middlewares/loginCheck')
|
||||
|
||||
const router = new express.Router()
|
||||
|
||||
router.use(loginCheck.loginProtect)
|
||||
|
||||
router.get('/stats', dashboardController.getDashboardStats)
|
||||
router.get('/summary', dashboardController.getDashboardStats)
|
||||
|
||||
module.exports = router
|
||||
Reference in New Issue
Block a user