/**
 * API Routes Index
 * Combines all route modules
 */

const express = require("express");
const router = express.Router();

const authRoutes = require("./authRoutes");
const employeeRoutes = require("./employeeRoutes");
const departmentRoutes = require("./departmentRoutes");
const taskRoutes = require("./taskRoutes");
const commentRoutes = require("./commentRoutes");
const notificationRoutes = require("./notificationRoutes");
const dashboardRoutes = require("./dashboardRoutes");
const reportRoutes = require("./reportRoutes");

// API version info
router.get("/", (req, res) => {
  res.json({
    success: true,
    message: "Aerix Global Task Management API",
    version: "1.0.0",
    documentation: "/api/docs",
  });
});

// Mount routes
router.use("/auth", authRoutes);
router.use("/employees", employeeRoutes);
router.use("/departments", departmentRoutes);
router.use("/tasks", taskRoutes);
router.use("/comments", commentRoutes);
router.use("/notifications", notificationRoutes);
router.use("/dashboard", dashboardRoutes);
router.use("/reports", reportRoutes);

module.exports = router;
