c5ca3ca992
Implement local user authentication with password hashing, add admin roles for user management and audit log viewing, and introduce audit logging for critical actions. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 776963d0-f75d-42e2-a57b-cc36bdff8495 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Event-Id: 832a44ff-12ae-4096-8a0d-666ec083d536 Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0683fb79-a27c-485c-9333-5f4b288c4567/776963d0-f75d-42e2-a57b-cc36bdff8495/1p7jhzu Replit-Helium-Checkpoint-Created: true
21 lines
546 B
TypeScript
21 lines
546 B
TypeScript
import { Router, type IRouter } from "express";
|
|
import healthRouter from "./health";
|
|
import toolsRouter from "./tools";
|
|
import ratingsRouter from "./ratings";
|
|
import analyticsRouter from "./analytics";
|
|
import authRouter from "./auth";
|
|
import usersRouter from "./users";
|
|
import auditRouter from "./audit";
|
|
|
|
const router: IRouter = Router();
|
|
|
|
router.use(authRouter);
|
|
router.use(healthRouter);
|
|
router.use(toolsRouter);
|
|
router.use(ratingsRouter);
|
|
router.use(analyticsRouter);
|
|
router.use(usersRouter);
|
|
router.use(auditRouter);
|
|
|
|
export default router;
|