Add API endpoint to get all frontends or backends