o134's picture
Upload full TeamTasker system with all fixes
8314cf4 verified
Raw
History Blame Contribute Delete
931 Bytes
import { Router, type IRouter } from "express";
import healthRouter from "./health";
import authRouter from "./auth";
import usersRouter from "./users";
import clientsRouter from "./clients";
import tasksRouter from "./tasks";
import commentsRouter from "./comments";
import notificationsRouter from "./notifications";
import dashboardRouter from "./dashboard";
import taskTypesRouter from "./task-types";
import weeklyReportsRouter from "./weekly-reports";
import { requireAuth } from "../middleware/auth.js";
const router: IRouter = Router();
router.use(healthRouter);
router.use(authRouter);
// All routes below this line require authentication
router.use(requireAuth);
router.use(usersRouter);
router.use(clientsRouter);
router.use(tasksRouter);
router.use(commentsRouter);
router.use(notificationsRouter);
router.use(dashboardRouter);
router.use(taskTypesRouter);
router.use(weeklyReportsRouter);
export default router;