Spaces:
Runtime error
Runtime error
| import { Router, type IRouter } from "express"; | |
| import healthRouter from "./health"; | |
| import projectsRouter from "./projects"; | |
| import clientsRouter from "./clients"; | |
| import tasksRouter from "./tasks"; | |
| import timeEntriesRouter from "./time_entries"; | |
| import briefsRouter from "./briefs"; | |
| import dashboardRouter from "./dashboard"; | |
| import { requireAuth } from "../middlewares/auth"; | |
| const router: IRouter = Router(); | |
| router.use(healthRouter); | |
| router.use(requireAuth); | |
| router.use(projectsRouter); | |
| router.use(clientsRouter); | |
| router.use(tasksRouter); | |
| router.use(timeEntriesRouter); | |
| router.use(briefsRouter); | |
| router.use(dashboardRouter); | |
| export default router; | |