You can use the ?
character to make the parameter optional:
/articles/:year?/:month?/:day?
Or:
router.delete('/:source?/:model?', itemDataController.remove);
References:
You can use the ?
character to make the parameter optional:
/articles/:year?/:month?/:day?
Or:
router.delete('/:source?/:model?', itemDataController.remove);
References: