base setting up routes for crud endpoints