Skip to content

Commit

Permalink
Add alias for unit route
Browse files Browse the repository at this point in the history
  • Loading branch information
williambelle committed May 15, 2024
1 parent c5f87f0 commit c9b4fc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/routes/unit.route.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit c9b4fc0

Please sign in to comment.