import { Router } from 'express';
import { dealerExternalController } from '../controllers/dealerExternal.controller';
import { authenticateToken } from '../middlewares/auth.middleware';

const router = Router();

/**
 * @route GET /api/v1/dealers-external/search/:dealerCode
 * @desc Search dealer information from external RE API
 * @access Private (Authenticated)
 */
router.get('/search/:dealerCode', authenticateToken, dealerExternalController.searchByDealerCode);

export default router;
