diff --git a/src/routes/unit.route.js b/src/routes/unit.route.js index 8c7a33b..3410c25 100644 --- a/src/routes/unit.route.js +++ b/src/routes/unit.route.js @@ -3,7 +3,7 @@ const router = express.Router(); const unitController = require('../controllers/unit.controller'); -router.get('/', unitController.get); +router.get(['/', '/json'], unitController.get); router.get('/csv', unitController.getCsv); router.get('/suggestions', unitController.getSuggestions);