| 1 | import { Router } from "express"; |
| 2 | import healthRoutes from "./health.routes"; |
| 3 | import authRoutes from "./auth.routes"; |
| 4 | import videoRoutes from "./video.routes"; |
| 5 | import { authenticate } from "../middleware/auth.middleware"; |
| 6 | import subscriptionRoutes from "./subscription.routes"; |
| 7 | |
| 8 | const router = Router(); |
| 9 | |
| 10 | router.use("/health", healthRoutes); |
| 11 | router.use("/auth", authRoutes); |
| 12 | router.use("/subscriptions", subscriptionRoutes); |
| 13 | |
| 14 | router.use("/videos", authenticate, videoRoutes); |
| 15 | |
| 16 | export default router; |