first commit: Complete phishing test management panel with Node.js backend and React frontend

This commit is contained in:
salvacybersec
2025-11-10 17:00:40 +03:00
commit 19e551f33b
77 changed files with 6677 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
const express = require('express');
const router = express.Router();
const statsController = require('../controllers/stats.controller');
const { requireAuth } = require('../middlewares/auth');
// All stats routes require authentication
router.use(requireAuth);
router.get('/dashboard', statsController.getDashboardStats);
router.get('/recent-clicks', statsController.getRecentClicks);
router.get('/by-company', statsController.getCompanyBasedStats);
module.exports = router;