added controller route to get all departements in json format