/**
 * Offline Module Routes
 * ERP Transportistas
 *
 * Routes for offline queue and synchronization.
 * Sprint: S4 - TASK-007
 */

import { Router } from 'express';
import { AppDataSource } from '../../config/typeorm.js';
import { createSyncController } from './controllers/index.js';

const router = Router();

// Create controller router with DataSource
const syncRouter = createSyncController(AppDataSource);

// Mount routes
// /api/offline/* - Offline sync operations
router.use('/', syncRouter);

export default router;
