parametrize the routes to work with more resources