changed post to take list of breweries and to use the repositoriy