Add routes for the devices and departments lists.