const express = require('express');
const router = express.Router();
const { locationSearchHandler, getLocationByIdHandler } = require('../controllers/locationSearchController');

// Search locations by keyword
router.get('/v1/reference-data/locations', locationSearchHandler);

// Get location by ID
router.get('/v1/reference-data/locations/:locationId', getLocationByIdHandler);

module.exports = router;
