/resources/foo/:id and /resources/foo routes